:root {
  --phosphor-main: #ffb300;
  --phosphor-dim:  #8a6300;
  --phosphor-glow: rgba(255, 179, 0, .4);
  --bg-deep:       #050300;          
  --up:   #7CE38B;
  --down: #FF6B5E;
  --t: .1s linear;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
body {
  background: var(--bg-deep);
  color: var(--phosphor-main);
  font-family: "VT323", ui-monospace, monospace;
  -webkit-font-smoothing: none;      
  font-size: 22px; line-height: 1.2;
  min-height: 100vh;
  padding: 14px;
}
.skip { position: absolute; left: -9999px; display: inline-flex; align-items: center; min-height: 44px; }
.skip:focus { left: 14px; top: 14px; z-index: 9; background: var(--phosphor-main);
  color: var(--bg-deep); padding: 0 18px; }
:is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--phosphor-main); outline-offset: 2px; }
.tube {
  position: relative;
  min-height: calc(100vh - 28px);
  border: 1px solid var(--phosphor-dim);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  animation: boot 2s ease-out forwards;    
}
.tube::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,.25) 50%),
    linear-gradient(90deg, rgba(255,0,0,.06), rgba(0,255,0,.02), rgba(0,0,255,.06));
  background-size: 100% 4px, 6px 100%;
}
.tube::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.55) 100%);
}
@keyframes boot {
  0%   { opacity: 0; filter: brightness(2) blur(10px); }
  10%  { opacity: 1; filter: brightness(1) blur(0); }
  15%  { opacity: 0; }                 
  20%  { opacity: 1; }
  100% { opacity: 1; }
}
.hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--phosphor-dim); padding-bottom: 10px;
  font-size: 20px; letter-spacing: .06em; flex: 0 0 auto;
}
.hd b { color: var(--phosphor-dim); font-weight: 400; }
.hd__mid { color: var(--bg-deep); background: var(--phosphor-main); padding: 1px 10px; }
.hd__r { color: var(--phosphor-dim); }
.k { color: var(--phosphor-dim); font-size: 18px; letter-spacing: .14em; }
.read {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 26px; align-items: end;
  border-bottom: 1px solid var(--phosphor-dim); padding-bottom: 14px; flex: 0 0 auto;
}
.read__m { font-size: clamp(38px, 4.6vw, 68px); line-height: .95; text-shadow: 0 0 12px var(--phosphor-glow); }
.big {
  font-size: clamp(64px, 11vw, 168px); line-height: .82;
  text-shadow: 0 0 22px var(--phosphor-glow);
}
.mid { font-size: clamp(30px, 3.4vw, 50px); line-height: 1; }
.read__s { display: flex; gap: clamp(18px, 3vw, 46px); text-align: right; }
.d { font-size: 18px; letter-spacing: .08em; color: var(--phosphor-dim); }
.d--up { color: var(--up); }
.d--down { color: var(--down); }
.caret { display: inline-block; width: .42em; height: .82em; background: var(--phosphor-main);
  vertical-align: -.06em; margin-left: .12em; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
.scrub { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.scrub__t { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.mo {
  background: none; border: 1px solid var(--phosphor-dim); color: var(--phosphor-main);
  font-family: inherit; font-size: 17px; letter-spacing: .06em;
  padding: 6px 2px 5px; cursor: pointer; min-height: 84px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px;
  transition: background var(--t), color var(--t);
}
.mo:hover { background: rgba(255, 179, 0, .14); }
.mo__b { width: 62%; background: var(--phosphor-dim); transition: height var(--t); }
.mo.is-on { background: var(--phosphor-main); color: var(--bg-deep); }
.mo.is-on .mo__b { background: var(--bg-deep); }
.mo--part { border-style: dashed; }
.mkt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.mkt__h { display: flex; justify-content: space-between; gap: 14px; flex: 0 0 auto; }
.bars { flex: 1 1 auto; min-height: 0; display: grid; gap: 4px; align-content: stretch; }
.bar { display: grid; grid-template-columns: 150px 1fr 128px; gap: 12px; align-items: center; font-size: 19px; }
.bar__n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__v { text-align: right; color: var(--phosphor-dim); }
.bar__t {
  position: relative; height: 18px;
  border-top: 1px solid var(--phosphor-dim); border-bottom: 1px solid var(--phosphor-dim);
}
.bar__t::before, .bar__t::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; width: 1px;
  background: var(--phosphor-dim);
}
.bar__t::before { left: 0; }
.bar__t::after { right: 0; }
.bar__f { position: absolute; inset: 0 auto 0 0; background: var(--phosphor-main); transition: width .18s ease; }
.bar__f::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 2px,
              rgba(5,3,0,.3) 2px, rgba(5,3,0,.3) 4px);
}
.ft {
  display: flex; justify-content: space-between; gap: 16px; flex: 0 0 auto;
  border-top: 1px solid var(--phosphor-dim); padding-top: 9px;
  font-size: 17px; letter-spacing: .1em; color: var(--phosphor-dim);
}
@media (max-width: 900px) {
  body { font-size: 20px; }
  .read { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .read__s { justify-content: space-between; text-align: left; }
  .bar { grid-template-columns: 104px 1fr 92px; gap: 8px; font-size: 17px; }
  .mo { font-size: 15px; min-height: 62px; }
}
@media (max-width: 560px) {
  .hd { flex-wrap: wrap; gap: 6px; font-size: 18px; }
  .bar { grid-template-columns: 88px 1fr; }
  .bar__v { grid-column: 2; text-align: left; }
  .mo { min-height: 56px; }
}
