.ttr { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 1050px) { .ttr { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- board */
.ttr-mapwrap { position: relative; border: 3px solid #3b2a17; border-radius: 12px; overflow: hidden; background: #8fc1d6; padding-bottom: var(--band, 84px);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 0 0 4px #c9a873; perspective: 1500px; }
.ttr-stage { transform-origin: 50% 55%; transition: transform .45s ease; touch-action: none; }
.ttr-mapwrap.tilt .ttr-stage { transform: rotateX(22deg) scale(.98) translateY(-1%); }
.ttr-mapwrap.tilt { background: linear-gradient(#0e2a3a, #1d4f66 30%, #8fc1d6); }
#tMap { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); user-select: none; -webkit-user-select: none; cursor: grab; }
#tMap:active { cursor: grabbing; }
#tMap .sea { fill: url(#tSea); }
#tMap .land { fill: #efe4c6; stroke: #8f7a55; stroke-width: .9; }
#tMap .lake { fill: #a8d0e2; stroke: #6f98ad; stroke-width: .5; }
#tMap .states { fill: none; stroke: #b9a682; stroke-width: .7; stroke-dasharray: 3 2.5; }
#tMap .countries { fill: none; stroke: #8b5a44; stroke-width: 1.2; }
#tMap .rivers { fill: none; stroke: #6fa5c6; stroke-width: .9; stroke-linecap: round; }
#tMap .peak { fill: #b8a98a; stroke: #7a6a4c; stroke-width: .6; }
#tMap .peak-snow { fill: #fff; }
#tMap .lm { opacity: .9; }
.no-borders #tMap .geo-borders, .no-rivers #tMap .geo-rivers, .no-rivers #tMap .lake, .no-mountains #tMap .geo-mountains, .no-landmarks #tMap .geo-landmarks { display: none; }
.no-rivers #tMap .lake { display: none; }
#tMap .inset-bg { fill: #efe3c8; }
#tMap .inset-streets { fill: none; stroke: #d9c9a6; stroke-width: 3; }
#tMap .inset-river { fill: none; stroke: #6fa5c6; stroke-width: 10; stroke-linecap: round; opacity: .7; }
#tMap .inset-frame { fill: none; stroke: #4a3a22; stroke-width: 2.5; }
#tMap .inset-label { font: 700 16px Georgia, serif; fill: #4a3a22; opacity: .8; }

/* cars: classic board look */
#tMap .seg { stroke: #2a2420; stroke-width: .9; }
.tilt #tMap .shadowed { filter: url(#tShadow); }
#tMap .seg.red { fill: #d7263d; } #tMap .seg.orange { fill: #f08a24; } #tMap .seg.yellow { fill: #f2c80f; } #tMap .seg.green { fill: #4f9d3a; }
#tMap .seg.blue { fill: #2f7fd1; } #tMap .seg.pink { fill: #a855c8; } #tMap .seg.white { fill: #f9f7f1; } #tMap .seg.black { fill: #2b2b2b; }
/* gray routes stand out: mid gray, dark edge, light centre line */
#tMap .seg.gray { fill: #9ea2a8; stroke: #3c3f44; stroke-width: 1.2; }
#tMap .graymark { stroke: #e4e6e9; stroke-width: 1.4; stroke-linecap: round; pointer-events: none; }
/* Japan bullet routes: seaweed until the bullet trains run out, then plain gray */
#tMap .seg.bullet { fill: #2f7a4f; stroke: #123d26; stroke-width: 1.1; }
#tMap .weed { fill: none; stroke: #9fdc6e; stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
#tMap .route.bullet-gray .seg.bullet { fill: #9ea2a8; stroke: #3c3f44; }
#tMap .route.bullet-gray .weed { stroke: #e4e6e9; }
#tMap .route.bulletdone .seg { fill: #e9f6ff; stroke-width: 2.2; }
#tMap .route.bulletdone .weed { stroke: #3a6b4f; }
#tMap .cbl { display: none; pointer-events: none; }
.cb #tMap .cbl { display: inline; }
#tMap .route .hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; }
#tMap .route.can .seg { filter: drop-shadow(0 0 3px #fff7a0) drop-shadow(0 0 2px #fff7a0); animation: canglow 1.6s ease-in-out infinite; }
@keyframes canglow { 50% { filter: drop-shadow(0 0 6px #fff36a) drop-shadow(0 0 3px #fff); } }
#tMap .route:hover .seg { filter: brightness(1.15) drop-shadow(0 0 4px #fff); }
#tMap .route.claimed .seg { opacity: 0; }
#tMap .route.flash .seg { animation: rflash 1.4s ease-out; }
@keyframes rflash { 0%, 40% { filter: drop-shadow(0 0 8px #fff) brightness(1.6); } 100% { filter: none; } }
#tMap .route.locked { opacity: .3; }

/* claimed trains */
#tTrains { pointer-events: none; }
#tTrains .wagon { stroke: #111; stroke-width: 1; }
#tTrains .win { fill: rgba(255,255,255,.55); }
#tTrains .scales { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1; }
.tilt #tTrains .train { filter: url(#tShadow); }
#tTrains .school-dot { fill-opacity: .55; stroke-width: 1.2; }
#tTrains .school-dot.head { fill-opacity: .8; stroke: #fff !important; stroke-width: 1.6; }
.fade-others #tTrains .theirs { opacity: .3; }
.fade-others #tMap .route.others .seg { opacity: .1; }

/* cities: brass ring with a dark core, names with a paper halo */
#tMap .city .ring { fill: #f7ecd2; stroke: #6b4a1f; stroke-width: 2.2; }
#tMap .city .core { fill: #b03a2e; }
#tMap .city.tokyo .ring { fill: #fff6e0; }
#tMap .city.mine .core { fill: #2a8a3e; }
#tMap .city.hl .ring { fill: #ffe27a; stroke: #111; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { r: 11; } }
#tLabels { pointer-events: none; }
#tMap .clabel { font: 700 11px "Trebuchet MS", system-ui, sans-serif; fill: #2a1d0e; paint-order: stroke; stroke: #fbf3df; stroke-width: 3.2px; stroke-linejoin: round; letter-spacing: .2px; }
#tMap .clabel.big { font-size: 15px; }
#tMap .clabel.small { font-size: 9.5px; }
#tMap .clabel.hl { fill: #7a1d12; }

/* ticket lines */
#tTix { pointer-events: none; }
#tMap .tline { fill: none; stroke-width: 4.5; stroke-dasharray: 9 6; stroke-linecap: round; }
#tMap .tend { fill: none; stroke-width: 4; }
#tMap .tmine .tline, #tMap .tmine .tend { stroke: #ffc531; filter: drop-shadow(0 0 1.5px #000); }
#tMap .tmine.done .tline, #tMap .tmine.done .tend { stroke: #2a8a3e; }
#tMap .tnew .tline { stroke: #ff3df2; stroke-width: 5; filter: drop-shadow(0 0 3px #fff); animation: tdash 1s linear infinite; }
#tMap .tnew .tend { stroke: #ff3df2; }
#tMap .tnew.off { opacity: .22; }
@keyframes tdash { to { stroke-dashoffset: -30; } }
@keyframes blink { 50% { opacity: .25; } }

/* puffs */
#tFx { pointer-events: none; }
#tMap .steam { fill: #f2f2f2; opacity: 0; animation: puff 1.6s ease-out forwards; }
#tMap .bubble { fill: rgba(200,235,255,.35); stroke: #e6f7ff; stroke-width: .8; opacity: 0; animation: puff 1.8s ease-out forwards; }
@keyframes puff { 0% { opacity: .9; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx, -10px), var(--dy, -24px)) scale(1.9); } }
#tMap .steam, #tMap .bubble { transform-box: fill-box; transform-origin: center; }

/* overlays: zoom buttons, banner, mini-map */
.zoomctl { position: absolute; right: 8px; top: 8px; z-index: 5; display: flex; gap: 4px; }
.zoomctl .btn { width: 38px; height: 38px; padding: 0; font-size: 1.15rem; background: rgba(20,35,28,.85); }
.ttr-banner { position: absolute; left: 50%; top: 58px; z-index: 4; transform: translate(-50%, -260%); background: rgba(250,243,223,.97); color: #2a1d0e; border: 2px solid #6b4a1f;
  border-radius: 999px; padding: 6px 14px; font-size: .92rem; display: flex; gap: 6px; align-items: center; transition: transform .35s ease; box-shadow: 0 4px 14px rgba(0,0,0,.35); max-width: 92%; }
.ttr-banner.show { transform: translate(-50%, 0); }
.ttr-banner .pc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.minimap { position: absolute; right: 8px; top: 56px; width: 150px; z-index: 3; border: 2px solid #3b2a17; border-radius: 6px; overflow: hidden; background: #8fc1d6; cursor: pointer; opacity: .92; transition: opacity .3s; }
.minimap.full { opacity: 0; pointer-events: none; }
.minimap svg { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .minimap { width: 100px; } }

/* ---------------------------------------------------------------- bar, cards, hand */
.ttr-bar { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ttr-status { flex: 1 1 220px; font-weight: 700; }
.ttr-status.me { color: var(--accent); font-size: 1.08rem; }
.ttr-status small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.faceup { display: flex; gap: 6px; flex-wrap: wrap; }
.tcard { width: 54px; height: 78px; border-radius: 7px; border: 2px solid rgba(0,0,0,.55); cursor: pointer; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; color: #111; transition: transform .1s; padding: 2px; overflow: hidden; background-size: cover; background-position: center; }
.tcard::after { content: ''; position: absolute; inset: 0; background-image: var(--cb, none); background-size: 12px 12px; opacity: 0; pointer-events: none; }
.cb .tcard::after, body.ttr-cb .tcard::after { opacity: 1; }
.tcard .art { width: 44px; height: 24px; }
.tcard .cn { font-size: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; background: rgba(255,255,255,.75); border-radius: 4px; padding: 0 3px; margin-top: 2px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tcard:hover:not(:disabled) { transform: translateY(-3px); }
.tcard:disabled { cursor: default; }
.faceup .tcard:disabled { opacity: .6; }
.tcard .n { position: absolute; top: 2px; right: 4px; font-size: .9rem; background: rgba(255,255,255,.85); border-radius: 8px; padding: 0 4px; line-height: 1.2; }
.tcard.red { background-color: #d7263d; } .tcard.orange { background-color: #f08a24; } .tcard.yellow { background-color: #f2c80f; } .tcard.green { background-color: #4f9d3a; }
.tcard.blue { background-color: #2f7fd1; } .tcard.pink { background-color: #a855c8; } .tcard.white { background-color: #f9f7f1; } .tcard.black { background-color: #2b2b2b; }
.tcard.loco { background: linear-gradient(135deg, #d7263d, #f08a24, #f2c80f, #4f9d3a, #2f7fd1, #a855c8); }
.tcard.back { background-color: #e9d8b4; border-color: #4a2e16; justify-content: flex-end; }
.tcard.back .lbl { font-size: .58rem; background: rgba(255,243,214,.9); border-radius: 4px; padding: 0 3px; margin-bottom: 2px; color: #4a2e16; }
.tcard.got { animation: got .9s ease-out; }
@keyframes got { 0% { transform: translateY(-14px) scale(1.15); box-shadow: 0 0 0 4px #f2c14e; } 100% { transform: none; } }
.ttr-hand { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ttr-hand .lbl { color: var(--muted); font-size: .85rem; }
.ttr-hand .trainsleft { margin-left: auto; }
.stacks { display: flex; gap: 14px; flex-wrap: wrap; }
.stack { position: relative; padding-left: 12px; }
.stack .tcard { opacity: 1; }
.stack .under { position: absolute; top: calc(var(--k) * -3px); left: calc(12px - var(--k) * 4px); width: 54px; height: 78px; border-radius: 7px; border: 2px solid rgba(0,0,0,.45); }
.stack .under.red { background: #b51f33; } .stack .under.orange { background: #cf7418; } .stack .under.yellow { background: #d2ad06; } .stack .under.green { background: #3f8030; }
.stack .under.blue { background: #2468b0; } .stack .under.pink { background: #8c43a8; } .stack .under.white { background: #dcd8cc; } .stack .under.black { background: #1a1a1a; }
.stack .under.loco { background: linear-gradient(135deg, #b51f33, #cf7418, #d2ad06, #3f8030, #2468b0, #8c43a8); }
.stack.got .tcard, .stack.got { animation: got .9s ease-out; }

/* ---------------------------------------------------------------- side panels */
.ttr-side { display: flex; flex-direction: column; gap: 12px; }
.ttr-side .card { padding: 12px; }
.ttr-side h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tsw { display: inline-flex; gap: 4px; align-items: center; font-weight: 400; }
.tp { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; }
.tp.cur { border-color: var(--accent); background: rgba(242,193,78,.08); }
.tp .sw { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); border: 3px solid var(--pc); display: grid; place-items: center; line-height: 0; flex: none; }
.tp .nm { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tp .mini-loco { line-height: 0; }
.tp .meta { font-size: .75rem; color: var(--muted); }
.tp .sc { font-weight: 800; font-size: 1.1rem; text-align: right; }
.tix-list { display: flex; flex-direction: column; gap: 5px; }
.tix-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 8px; border-radius: 8px; background: #fff3d6; color: #2b2210; font-size: .85rem; cursor: pointer; border: 0; border-left: 5px solid #c99a2a; text-align: left; font: inherit; font-size: .85rem; }
.tix-item.on { box-shadow: 0 0 0 2px #e63946 inset; }
.tix-item.done { background: #dff5e3; border-left-color: #2a9d5a; }
.tix-item b { white-space: nowrap; }
.tix-item .prog { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(0,0,0,.12); overflow: hidden; }
.tix-item .prog i { display: block; height: 100%; background: linear-gradient(90deg, #c99a2a, #2a9d5a); }
.btrack { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; }
.btrack .row2 { display: grid; grid-template-columns: 80px 1fr 28px; gap: 6px; align-items: center; }
.btrack .bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.btrack .bar i { display: block; height: 100%; background: var(--pc); }
.final-banner { background: linear-gradient(90deg, #7a2e2a, #a5443d); border-radius: 10px; padding: 8px 12px; font-weight: 700; text-align: center; animation: pop .3s; }

/* ---------------------------------------------------------------- dialogs */
.pick-list label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: #fff3d6; color: #2b2210; margin-bottom: 6px; cursor: pointer; border-left: 6px solid #c99a2a; }
.pick-list label b { margin-left: auto; font-size: 1.1rem; }
.payopts { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.payopts .btn { display: flex; align-items: center; gap: 3px; justify-content: flex-start; flex-wrap: wrap; }
.payopts .btn span:last-child { margin-left: 6px; }
.mini { display: inline-block; width: 14px; height: 20px; border-radius: 3px; border: 1px solid rgba(0,0,0,.6); vertical-align: middle; position: relative; overflow: hidden; }
.mini.red { background: #d7263d; } .mini.orange { background: #f08a24; } .mini.yellow { background: #f2c80f; } .mini.green { background: #4f9d3a; }
.mini.blue { background: #2f7fd1; } .mini.pink { background: #a855c8; } .mini.white { background: #f9f7f1; } .mini.black { background: #2b2b2b; }
.mini.loco { background: linear-gradient(135deg, #d7263d, #f08a24, #f2c80f, #4f9d3a, #2f7fd1, #a855c8); }
.vgroup { margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.vrow { display: flex; gap: 8px; align-items: center; }
.vrow.off { opacity: .55; }
.sndlist { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; margin: 8px 0; }
.snd { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; font-size: .88rem; }
.snd code { font-size: .75rem; color: var(--muted); }
.scoretable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.scoretable th, .scoretable td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.scoretable th:first-child, .scoretable td:first-child { text-align: left; }
.scoretable tr.win td { color: var(--accent); font-weight: 800; }
.endbox { margin-top: 10px; }

@media (max-width: 699px) {
  #tMap { height: 64vh; max-height: none; }
  .zoomctl { right: 6px; bottom: 6px; }
  .zoomctl .btn { width: 32px; height: 32px; font-size: 1rem; }
  .ttr-mapwrap.tilt .ttr-stage { transform: rotateX(16deg) scale(.97); }
  .tcard, .stack .under { width: 48px; height: 70px; }
}
.tcard.back .n { top: auto; bottom: 2px; }
.tcard .cn, .tcard .n, .tcard .lbl, .tcard .art { position: relative; z-index: 1; }
.tcard .n { position: absolute; }
.tcard.back .lbl { font-size: .5rem; align-self: flex-start; }

/* ---------------------------------------------------------------- round 2: everything inside the map */
.ttr-statusbox { position: absolute; left: 8px; top: 8px; z-index: 5; max-width: calc(100% - 200px); background: rgba(8,28,38,.92); color: #fff; border: 2px solid #2a6a86;
  border-radius: 18px; padding: 6px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.4); line-height: 1.25; }
.ttr-statusbox.me { border-color: #ffd24a; }
.ttr-statusbox b { font-size: 1.02rem; } .ttr-statusbox.me b { color: #ffd24a; }
.ttr-statusbox small { display: block; color: #cfe3ec; font-size: .8rem; }
.ttr-statusbox .final { display: block; color: #ff8c8c; font-weight: 800; font-size: .8rem; }
.ttr-tray { position: absolute; bottom: 0; z-index: 4; display: flex; align-items: flex-end; height: 106px; }
.ttr-tray.hand { left: 12px; } .ttr-tray.market { right: 12px; gap: 8px; }
.ttr-tray .lbl { position: absolute; left: 2px; top: -4px; z-index: 3; font: 800 12px system-ui; color: #fff; background: rgba(8,28,38,.88); border-radius: 999px; padding: 2px 9px; white-space: nowrap; pointer-events: none; }
.ttr-tray .none { color: #fff; font-size: .85rem; margin: 0 0 30px 4px; }
.ttr-tray .sep { width: 2px; align-self: stretch; margin: 26px 0 4px; background: rgba(255,255,255,.35); }
.tslot { position: relative; width: 64px; height: 96px; padding: 0; border: 0; background: none; cursor: pointer; transform: translateY(32px); transition: transform .22s; }
.tslot > svg { display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.tslot .cnt { position: absolute; right: -4px; top: -9px; z-index: 2; min-width: 24px; height: 24px; border-radius: 12px; background: #ffd24a; color: #1d1a17; font: 900 14px/20px system-ui; text-align: center; border: 2px solid #1d1a17; padding: 0 4px; }
.ttr-tray.hand .stack { position: relative; }
.ttr-tray.hand .stack + .stack { margin-left: var(--step, -22px); }
.ttr-tray.hand .tslot { cursor: default; }
.ttr-tray.hand .tslot .cnt { left: 20px; right: auto; }
.ttr-tray.hand .stack:hover { z-index: 3; } .ttr-tray.hand .stack:hover .tslot { transform: translateY(4px); }
.ttr-tray.market .tslot:disabled { cursor: default; }
.ttr-tray.market.turn .tslot:not(:disabled) { transform: translateY(14px); }
.ttr-tray.market.turn .tslot:not(:disabled):hover { transform: translateY(2px); }
.ttr-tray.market:not(.turn) .tslot > svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)) saturate(.75); }
.ttr-tray.market .lbl { left: 4px; top: -2px; }
.ttr-tray.market.turn .lbl { color: #1d1a17; background: #ffd24a; }
.ttr-tray .btn { margin: 0 0 30px; }
.stack.got .tslot { animation: got .9s ease-out; }
.ttr-mapwrap.picking .ttr-tray { visibility: hidden; }
.ttr-pick { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 6; display: flex; gap: 14px; align-items: center; background: rgba(8,28,38,.96); border: 2px solid #2a6a86;
  border-radius: 16px; padding: 8px 14px; color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.45); }
.ttr-pick .hd { flex: 0 0 165px; } .ttr-pick h3 { margin: 0 0 3px; font-size: 1.02rem; } .ttr-pick p { margin: 0; font-size: .78rem; color: #9fc3d3; line-height: 1.3; }
.ttr-pick .key { display: flex; flex-direction: column; gap: 2px; font-size: .76rem; color: #cfe3ec; margin-top: 5px; }
.ttr-pick .key i { display: inline-block; width: 18px; height: 0; border-top: 4px dashed; vertical-align: middle; margin-right: 5px; }
.ttr-pick .key .kn { color: #ff3df2; } .ttr-pick .key .ko { color: #ffc531; }
.ttr-pick .tks { display: flex; gap: 12px; flex-wrap: wrap; flex: 1 1 auto; }
.ttr-pick .tk { position: relative; line-height: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .2s; }
.ttr-pick .tk.off { opacity: .45; }
.ttr-pick .tk .ck { position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: #2f9e5b; color: #fff; font: 900 14px/20px system-ui; text-align: center; border: 2px solid #fff; }
.ttr-pick .tk.off .ck { background: #555; }
.ttr-pick > .btn { flex: 0 0 auto; height: 46px; padding: 0 18px; margin-left: auto; }
@media (max-width: 699px) {
  .ttr-mapwrap { --band: 150px; }
  .zoomctl { right: 6px; top: 6px; bottom: auto; flex-direction: column; }
  .ttr-statusbox { max-width: calc(100% - 56px); padding: 5px 10px; }
  .minimap { display: none; }
  .ttr-tray.market { left: 6px; right: 6px; bottom: 58px; height: 92px; gap: 4px; justify-content: center; }
  .ttr-tray.market .tslot { width: 42px; height: 63px; transform: translateY(0) !important; }
  .ttr-tray.market .tslot > svg { width: 42px; height: 63px; }
  .ttr-tray.market .sep { margin: 20px 0 4px; }
  .ttr-tray.hand { left: 6px; right: 6px; }
  .ttr-pick { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .ttr-pick .hd { flex: 1 1 100%; } .ttr-pick .key { flex-direction: row; gap: 12px; }
  .ttr-pick > .btn { flex: 1 1 100%; height: 40px; }
}
.tslot { flex: 0 0 auto; margin: 0; min-width: 0; min-height: 0; box-sizing: border-box; }
.ttr-tray.hand .stack { flex: 0 0 auto; width: 64px; }
.ttr-banner:not(.show) { opacity: 0; pointer-events: none; }
@media (max-width: 699px) { .ttr-tray.hand .stack, .ttr-tray.hand .tslot { width: 54px; } .ttr-tray.hand .tslot > svg { width: 54px; height: 81px; } }
@media (max-width: 699px) {
  .ttr-mapwrap { --band: 184px; }
  .ttr-tray.market { bottom: 86px; }
  .ttr-tray.hand .lbl { top: 36px; }
}
@media (max-width: 699px) {
  .ttr-pick .tks { flex-wrap: nowrap; gap: 8px; justify-content: space-between; }
  .ttr-pick .hd p { display: none; }
  .ttr-banner { top: 64px; max-width: calc(100% - 60px); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
}
@media (max-width: 699px) { .ttr-pick .tk .ck { left: auto; right: -6px; top: -10px; width: 20px; height: 20px; font-size: 12px; line-height: 16px; } }
/* the trays hang below the edge; "clip" stops the browser scrolling the map box when a card button gets focus */
.ttr-mapwrap { overflow: clip; }
