/* Rewind: Mode 7 style Christmas teletext card. Original design; system monospace only. */
.xtt{--xtt-black:#000;--xtt-red:#f33;--xtt-green:#2f2;--xtt-yellow:#ff3;--xtt-blue:#33f;--xtt-magenta:#f3f;--xtt-cyan:#3ff;--xtt-white:#fff;
 max-width:34rem;margin:1.5rem auto;background:var(--xtt-black);color:var(--xtt-white);border:.5rem solid #1b1b1b;border-radius:.9rem;
 box-shadow:0 .4rem 1.4rem rgba(0,0,0,.5),inset 0 0 2rem rgba(0,0,0,.9);
 font:1rem/1.35 "Cascadia Mono","DejaVu Sans Mono","Liberation Mono","SF Mono",ui-monospace,Menlo,Consolas,monospace;letter-spacing:.02em}
.xtt *{box-sizing:border-box}
.xtt:focus-visible{outline:3px solid var(--xtt-cyan);outline-offset:3px}
.xtt-head{display:flex;justify-content:space-between;gap:.5rem;background:var(--xtt-blue);color:var(--xtt-white);padding:.15rem .6rem;font-weight:700;text-transform:uppercase;font-size:.9rem}
.xtt-head span:first-child{color:var(--xtt-white)}.xtt-head span:last-child{color:var(--xtt-yellow)}
.xtt-screen{min-height:19rem;padding:.7rem .8rem;position:relative;overflow-wrap:anywhere}
.xtt-row{margin:0 0 .35rem}
.xtt-h{font-size:1.5rem;line-height:1.15;font-weight:700;margin:.1rem 0 .5rem;text-transform:uppercase}
.xtt-sub{color:var(--xtt-cyan);margin:0 0 .6rem}
.xtt-w{color:var(--xtt-white)}.xtt-y{color:var(--xtt-yellow)}.xtt-c{color:var(--xtt-cyan)}.xtt-g{color:var(--xtt-green)}.xtt-m{color:var(--xtt-magenta)}.xtt-r{color:var(--xtt-red)}
.xtt-bar{height:.55rem;margin:.5rem 0;background:repeating-linear-gradient(90deg,var(--xtt-red) 0 1.2ch,var(--xtt-green) 1.2ch 2.4ch)}
.xtt-block{background:var(--xtt-blue);color:var(--xtt-yellow);padding:.1rem .4rem;display:inline-block}
.xtt-frame{display:block;width:100%;height:auto;aspect-ratio:4/3;background:#080808;image-rendering:pixelated;border:1px solid #333;margin:.3rem 0}
.xtt-load{display:block;width:100%;aspect-ratio:4/3;background:#000;border:2px dashed var(--xtt-cyan);color:var(--xtt-cyan);font:inherit;cursor:pointer;padding:1rem;text-align:center}
.xtt-load:hover,.xtt-load:focus-visible{background:#033;outline:2px solid var(--xtt-yellow)}
.xtt a{color:var(--xtt-cyan);text-decoration:underline}.xtt a:hover,.xtt a:focus-visible{background:var(--xtt-cyan);color:#000}
.xtt-links{list-style:none;margin:0;padding:0}.xtt-links li{margin:.35rem 0}
.xtt-links li::before{content:"\25B6 ";color:var(--xtt-green)}
.xtt-note{color:var(--xtt-magenta);font-size:.9rem}
.xtt-nav{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.4rem;padding:.2rem .8rem;color:var(--xtt-cyan);font-size:.85rem}
.xtt-dots{display:flex;gap:.2rem;flex-wrap:wrap;justify-content:center}
.xtt-dot{width:1.5rem;height:1.5rem;padding:0;border:1px solid #555;background:#000;color:#aaa;font:inherit;font-size:.7rem;cursor:pointer}
.xtt-dot[aria-current="true"]{background:var(--xtt-white);color:#000;border-color:var(--xtt-white)}
.xtt-dot:focus-visible{outline:2px solid var(--xtt-yellow)}
.xtt-fast{display:flex;gap:.3rem;padding:.4rem .5rem .5rem}
.xtt-fb{flex:1 1 0;min-width:0;min-height:2.75rem;border:0;border-radius:0;font:inherit;font-weight:700;font-size:.85rem;text-transform:uppercase;cursor:pointer;padding:.3rem .2rem}
.xtt-fb:focus-visible{outline:3px solid #fff;outline-offset:2px}
.xtt-fb[disabled]{opacity:.35;cursor:not-allowed}
.xtt-red{background:var(--xtt-red);color:#fff}.xtt-green{background:var(--xtt-green);color:#000}.xtt-yellow{background:var(--xtt-yellow);color:#000}.xtt-blue{background:var(--xtt-blue);color:#fff}
.xtt-credit{padding:0 .8rem .5rem;font-size:.75rem;color:#9a9a9a}
.xtt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:30rem){.xtt{border-width:.3rem;font-size:.95rem}.xtt-h{font-size:1.25rem}.xtt-screen{padding:.6rem}.xtt-fb{font-size:.75rem}}
@media (prefers-reduced-motion:no-preference){.xtt-screen{animation:xtt-in .15s steps(3)}@keyframes xtt-in{from{opacity:.3}to{opacity:1}}}
.xtt-m7{border:1px solid #222;padding:.5rem;min-height:11rem}.xtt-pre{white-space:pre;text-align:center;margin:0;line-height:1.1;overflow:hidden}

/* story pop-up toggle */
.xtt-togglebar{display:flex;justify-content:flex-end;margin:0 0 .6rem}
.xtt-toggle{font:700 .85rem/1 "Cascadia Mono","DejaVu Sans Mono",ui-monospace,Menlo,Consolas,monospace;background:#000;color:#3ff;border:2px solid #3ff;border-radius:.3rem;padding:.5rem .8rem;min-height:2.5rem;cursor:pointer}
.xtt-toggle[aria-pressed="true"]{background:#33f;color:#fff;border-color:#33f}
.xtt-toggle:focus-visible{outline:3px solid #ff3;outline-offset:2px}
.xtt-storyview[hidden],article.story[hidden]{display:none}
.xtt-storycard{margin:0 auto}
a.xtt-fb{box-sizing:border-box}

/* Mode 7 grid pages */
.xtt-grid{position:relative;container-type:inline-size;width:100%;aspect-ratio:4/3;background:#000;overflow:hidden;margin:.2rem 0}
.xtt-grid svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.xtt-gt{position:absolute;display:flex;height:4.1667%;font-weight:700;line-height:3.125cqw;font-size:3.1cqw;white-space:pre}
.xtt-gt span{display:block;width:2.5cqw;height:3.125cqw;text-align:center;overflow:hidden}
.xtt-gd{transform:scaleY(2);transform-origin:0 0}
