/* ================================================================================================================
   THE ỌPỌ́N IFÁ — every menu of the game (tray.js, front.js, dimension.js; 2026-10-22: the constellation is gone).
   The tray is drawn in WebGL; round it, only a few words and real buttons; a section opened stands beside the tray as a
   carved board of dark iroko with brass at its corners — its rows scroll, its buttons press, nothing floats.
   ================================================================================================================ */
.tray { --wood0: #120a05; --wood1: #1e1109; --wood2: #2c180c; --wood3: #44260f; --brass: #c9954a; --brass2: #e9c27a; --ivory: #f3e6cc; --dust: #d6ad62;
  --tpad: max(18px, env(safe-area-inset-left)); --name: 'Cormorant Garamond', 'Montserrat', serif;
  position: fixed; inset: 0; font-family: 'Montserrat', var(--ui); color: var(--ivory); user-select: none; -webkit-user-select: none; }
#front.tray { z-index: 30; background: #050302; transition: opacity .9s ease; }
#front.tray.out { opacity: 0; pointer-events: none; }
#dim.tray { z-index: 60; display: none; }
#dim.tray.on { display: block; }
body.indim #hud, body.indim #touch, body.indim #minimap, body.indim #bigmap { visibility: hidden !important; }
.tray .tgl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tray .tcatch { position: absolute; inset: 0; touch-action: none; }
.tray .tveil { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, rgba(30,16,6,.86) 0%, #050302 70%); }
.tray .tflash { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff6e0 0%, #f2d39a 30%, #d6ad62 60%, rgba(60,30,8,0) 100%); }
#dim.tray:not(.inside) .ttop, #dim.tray:not(.inside) .tcap, #dim.tray:not(.inside) .tpanel { opacity: 0; pointer-events: none; }

/* the top: the name of the place, and on the right the cowries and the way out */
.tray .ttop { position: absolute; left: 0; right: 0; top: max(14px, env(safe-area-inset-top)); padding: 0 var(--tpad); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; transition: opacity .4s; }
.tray .ttop > * { pointer-events: auto; }
.tray .tright { display: flex; align-items: center; gap: 10px; }
.tray .dtitle b { display: block; font: 600 12px 'Montserrat', var(--ui); letter-spacing: .42em; color: var(--brass2); text-shadow: 0 1px 2px #000; }
.tray .dtitle span { display: block; margin-top: 5px; font-size: 9.5px; letter-spacing: .2em; color: rgba(243,230,204,.55); }
.tray .dpurse { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 20px; background: linear-gradient(180deg, var(--wood2), var(--wood1)); box-shadow: inset 0 1px 0 rgba(255,220,160,.18), inset 0 0 0 1px rgba(201,149,74,.45), 0 2px 8px rgba(0,0,0,.5); }
.tray .dpurse i { width: 11px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #fffaf0, #e8d8b8 55%, #a89070); }
.tray .dpurse b { font-size: 13px; letter-spacing: .08em; color: #fff3dc; }
.tray .dclose { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #e9c27a, #a8742e 60%, #6a4416); box-shadow: inset 0 1px 1px rgba(255,240,200,.6), 0 2px 8px rgba(0,0,0,.6); }
.tray .dclose svg { width: 12px; height: 12px; fill: none; stroke: #2a1608; stroke-width: 2.2; stroke-linecap: round; }

/* THE CAPTION: the near section's odù, its name, its line, and its button — under the tray */
.tray .tcap { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); text-align: center; pointer-events: none; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); width: min(92vw, 560px); }
.tray .tcap > * { pointer-events: auto; }
.tray .tcap .todu { display: block; font-size: 9px; letter-spacing: .38em; color: rgba(214,173,98,.75); }
.tray .tcap .tname { display: block; margin-top: 2px; font: 600 clamp(24px, 3.6vw, 36px)/1.05 var(--name); letter-spacing: .14em; color: #fbecd0; text-shadow: 0 2px 6px #000, 0 0 18px rgba(255,170,80,.35); }
.tray .tcap .tsub { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .16em; color: rgba(243,230,204,.7); text-shadow: 0 1px 3px #000; }
.tray .tcap.swap .tname, .tray .tcap.swap .tsub, .tray .tcap.swap .todu { animation: tswap .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tswap { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.tray .tcap .tdo { display: block; margin-top: 9px; font: 600 9.5px 'Montserrat', var(--ui); font-style: normal; letter-spacing: .32em; color: rgba(233,194,122,.85); text-shadow: 0 1px 3px #000; }
.tray .tcap .tdo.go { font-size: 11px; color: #f6d9a0; animation: tglow 2.4s ease-in-out infinite; }
@keyframes tglow { 50% { text-shadow: 0 1px 3px #000, 0 0 14px rgba(255,190,90,.9); } }
.tray .tcap, .tray .tcap * { pointer-events: none !important; }
.tray.opened .tcap { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
.tray.opened .tcap > * { pointer-events: none; }

/* THE PAGE: a board of dark iroko standing beside the tray — a carved zigzag along its head, brass at its corners */
.tray .tpanel { position: absolute; top: max(62px, calc(env(safe-area-inset-top) + 50px)); bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); width: min(56vw, 880px);
  display: flex; flex-direction: column; border-radius: 8px; opacity: 0; pointer-events: none; transform: translateY(30px) rotateX(8deg); transform-origin: 50% 100%;
  background: radial-gradient(ellipse at 20% 0%, rgba(255,200,130,.08), transparent 55%), repeating-linear-gradient(92deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px), repeating-linear-gradient(88deg, rgba(255,210,150,.025) 0 1px, transparent 1px 13px), linear-gradient(180deg, var(--wood2), var(--wood1) 40%, var(--wood0));
  box-shadow: inset 0 0 0 1px rgba(201,149,74,.55), inset 0 0 0 5px rgba(0,0,0,.35), inset 0 0 0 6px rgba(201,149,74,.22), inset 0 2px 30px rgba(0,0,0,.6), 0 18px 40px rgba(0,0,0,.7);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16,.9,.24,1); }
.tray .tpanel::before, .tray .tpanel::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 9px; background: radial-gradient(circle at 35% 30%, #fbe3a6, #b98236 55%, #5a3610); box-shadow: 0 1px 2px #000; pointer-events: none; }
.tray .tpanel::before { left: 9px; } .tray .tpanel::after { right: 9px; }
.tray.opened .tpanel { opacity: 1; pointer-events: auto; transform: none; }
.tray .tph { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 28px; flex: none; }
.tray .tph::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 9px; opacity: .8;
  background: linear-gradient(135deg, transparent 33%, rgba(201,149,74,.55) 33% 50%, transparent 50% 83%, rgba(201,149,74,.55) 83%) 0 0 / 12px 9px, linear-gradient(45deg, transparent 33%, rgba(0,0,0,.45) 33% 50%, transparent 50% 83%, rgba(0,0,0,.45) 83%) 6px 0 / 12px 9px; }
.tray .tback { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 18px; font: 700 9.5px 'Montserrat', var(--ui); letter-spacing: .22em; color: var(--brass2);
  background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(201,149,74,.5); }
.tray .tback i { width: 7px; height: 7px; border: solid var(--brass2); border-width: 0 0 2px 2px; transform: rotate(45deg); }
.tray .tback:active { transform: scale(.95); }
.tray .tpt { flex: 1; min-width: 0; }
.tray .tpt b { display: block; font: 600 clamp(19px, 2.4vw, 26px)/1.05 var(--name); letter-spacing: .12em; color: #fbecd0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray .tpt span { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: .16em; color: rgba(243,230,204,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray .tmark { flex: none; display: flex; align-items: center; gap: 8px; }
.tray .tmark svg { width: 18px; height: 26px; stroke: var(--dust); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 1px 1px #000); }
.tray .tmark small { font-size: 8px; letter-spacing: .26em; color: rgba(214,173,98,.7); writing-mode: vertical-rl; transform: rotate(180deg); max-height: 64px; overflow: hidden; }
.tray .tpb { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; padding: 14px 20px 22px 24px; font-size: 12px; display: flex; flex-direction: column; }
.tray .tpb * { touch-action: pan-y; }
.tray .tpb .rail, .tray .tpb .rail * { touch-action: none; }
.tray .tpb > * { flex: none; }
.tray .tpb > .hpane, .tray .tpb > .mpane { flex: 1 0 auto; min-height: 0; }
.tray.opened .tpanel.in .tpb > * { animation: trow .5s cubic-bezier(.2,.8,.2,1) both .08s; }
@keyframes trow { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* on a tall glass: the tray above, the page under it */
@media (max-aspect-ratio: 23/20) { .tray .tpanel { left: 10px; right: 10px; width: auto; top: 38%; } }

/* ---------------------------------------------------------------- what is on the pages */
.tray .tpb .split { flex: 1; min-height: 0; display: flex; gap: 14px; }
.tray .tpb .split > .side { width: clamp(150px, 32%, 250px); padding: 0; overflow-y: auto; max-height: none; }
.tray .tpb .split > .main { padding: 0 2px; overflow-y: auto; max-height: none; }
.tray .tpb .uprow, .tray .tpb .mv, .tray .tpb .srow { border-bottom: 1px solid rgba(201,149,74,.16) !important; background: transparent; }
.tray .tpb .mhead, .tray .tpb .mpane > h2 { display: none; }
.tray .tpb .hb { box-shadow: inset 0 0 0 1px rgba(201,149,74,.55); }
.tray .tpb .hb.gold { box-shadow: inset 0 1px 0 rgba(255,250,230,.7), 0 3px 10px rgba(0,0,0,.45); }
.tray .tpb .hb.big { min-height: 48px; padding: 0 26px; font-size: 12px; letter-spacing: .24em; }
.tray .tpb .hb small { display: block; margin-top: 4px; font-size: .8em; letter-spacing: .08em; opacity: .75; }
/* the forge's two tabs */
.tray .dsub { display: flex; gap: 8px; margin-bottom: 12px; }
.tray .dsub button { flex: 1; min-height: 36px; border-radius: 18px; font: 700 10.5px 'Montserrat', var(--ui); letter-spacing: .22em; color: rgba(243,230,204,.75); background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(201,149,74,.35); }
.tray .dsub button.on { color: #2a1608; background: linear-gradient(180deg, #f3d394, #c99550); box-shadow: inset 0 1px 0 rgba(255,250,230,.8); }
.tray .dhub { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* ÀṢẸ: the four branches, each a chain of rows */
.tray .branch { margin-bottom: 18px; }
.tray .branch header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.tray .branch header b { font-size: 13px; letter-spacing: .28em; }
.tray .branch header span { font-size: 10.5px; color: rgba(243,230,204,.6); letter-spacing: .08em; }
.tray .star { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid rgba(201,149,74,.14); border-radius: 4px; }
.tray .star.locked { opacity: .45; }
.tray .star.sel { background: rgba(255,200,120,.08); }
.tray .star .dot { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; }
.tray .star .dot.on { background: currentColor; box-shadow: 0 0 8px currentColor; }
.tray .star .tx { flex: 1; min-width: 0; color: var(--ivory); }
.tray .star .tx b { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; }
.tray .star .tx p { margin: 3px 0 0; font-size: 11px; color: rgba(243,230,204,.72); line-height: 1.45; }
.tray .star .tx em { font-style: normal; color: rgba(214,173,98,.8); font-size: 10px; letter-spacing: .08em; }
.tray .star .lock { flex: none; width: 5.4em; text-align: center; color: rgba(243,230,204,.4); }
.tray .pips { display: inline-flex; gap: 4px; vertical-align: middle; }
.tray .pips i { width: 6px; height: 6px; }
/* THE ROAD: the stones read, and what is kept */
.tray .word { padding: 11px 0; border-bottom: 1px solid rgba(201,149,74,.14); }
.tray .word b { display: block; font-size: 12px; letter-spacing: .2em; color: var(--brass2); }
.tray .word p { margin: 5px 0 0; font-size: 12px; line-height: 1.55; color: rgba(243,230,204,.86); }
.tray .word.unread b { color: rgba(243,230,204,.4); }
.tray .dnote { font-size: 11.5px; line-height: 1.5; color: rgba(243,230,204,.75); margin: 0 0 8px; }
.tray .mvsec { margin: 16px 0 6px; font-size: 10px; letter-spacing: .3em; color: rgba(214,173,98,.85); font-weight: 700; }
/* the freed: their cards in a grid, the chosen one's board beside it */
.tray .tpb .cards { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tray .tpb .egcard { background: linear-gradient(180deg, rgba(60,34,16,.9), rgba(22,12,6,.95)); box-shadow: inset 0 0 0 1px rgba(201,149,74,.35); }
.tray .tpb .egcard.sel { box-shadow: inset 0 0 0 2px var(--brass2), 0 0 16px rgba(233,194,122,.3); }
.tray .tpb .detail { padding-left: 12px; border-left: 1px solid rgba(201,149,74,.18); }

/* ---------------------------------------------------------------- THE FRONT: the title, the loading, the ways' pages */
#front .ttop { top: max(16px, env(safe-area-inset-top)); }
#front .ftitle { margin: 0; font: 600 clamp(26px, 4vw, 44px)/1 var(--name); letter-spacing: .2em; color: #fbecd0; text-shadow: 0 2px 6px #000, 0 0 22px rgba(255,170,80,.35); }
#front .ftitle span { display: inline-block; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * .08s); }
#front .ftitle .two { margin-left: .18em; color: var(--brass2); }
#front.up .ftitle span { opacity: 1; transform: none; }
#front .fsubt { margin: 6px 0 0; font-size: 9.5px; letter-spacing: .5em; color: rgba(214,173,98,.8); opacity: 0; transition: opacity 1s ease .6s; }
#front.up .fsubt { opacity: 1; }
#front .fload { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(60vw, 360px); transition: opacity .6s; pointer-events: none; }
#front .fbar { height: 3px; border-radius: 2px; background: rgba(201,149,74,.18); overflow: hidden; }
#front .fbar b { display: block; height: 100%; background: linear-gradient(90deg, #a8742e, #f3d394); transform-origin: 0 50%; transform: scaleX(0); }
#front .frow { display: flex; justify-content: space-between; margin-top: 7px; font-size: 9px; letter-spacing: .3em; color: rgba(243,230,204,.6); }
#front.up .fload { opacity: 0; }
#front:not(.up) .tcap, #front:not(.up) .tcatch { opacity: 0; pointer-events: none; }
#front:not(.up) .tcap > * { pointer-events: none; }
#front .fhint { position: absolute; left: 50%; top: max(18px, env(safe-area-inset-top)); transform: translateX(-50%); font-size: 9px; letter-spacing: .3em; color: rgba(243,230,204,.45); opacity: 0; transition: opacity .8s ease 1.2s; pointer-events: none; white-space: nowrap; }
#front.up .fhint { opacity: 1; }
#front.opened .fhint, #front.leaving .fhint { opacity: 0; transition-delay: 0s; }
#front.leaving .ttop, #front.leaving .tcap, #front.leaving .tpanel { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s; }
#front .froad { text-align: center; padding: 6px 0; }
#front .fkick { font-size: 9.5px; letter-spacing: .34em; color: rgba(214,173,98,.85); }
#front .froad h2 { margin: 10px 0 8px; font: 600 34px/1 var(--name); letter-spacing: .14em; color: #fbecd0; }
#front .flead { margin: 0 0 14px; font-size: 12.5px; line-height: 1.6; color: rgba(243,230,204,.86); }
#front .fsmall { margin: 16px 0 0; font-size: 9.5px; letter-spacing: .14em; line-height: 1.6; color: rgba(243,230,204,.5); }
#front .ffoot { margin: 12px 0 0; font-size: 9.5px; letter-spacing: .24em; color: rgba(214,173,98,.7); }
#front .fsec { margin: 18px 0 8px; font-size: 10px; letter-spacing: .32em; color: rgba(214,173,98,.85); font-weight: 700; }
#front .fname { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 22px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(201,149,74,.4); }
#front .fname span { font-size: 9.5px; letter-spacing: .3em; color: rgba(214,173,98,.8); }
#front .fname input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff0d0; font: 700 14px 'Montserrat', var(--ui); letter-spacing: .18em; user-select: text; -webkit-user-select: text; touch-action: auto; }
#front .fplay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#front .fplay .hb { min-height: 42px; }
#front .fplay1 { margin: 8px 0; min-height: 52px; flex-direction: column; }
#front .frowi { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(201,149,74,.14); }
#front .frowi b { font-size: 11px; letter-spacing: .14em; color: var(--ivory); }
#front .frowi span { font-size: 11px; color: rgba(243,230,204,.65); text-align: right; }
#front .fayo { text-align: center; }
#front .fays { font-size: 10.5px; letter-spacing: .28em; color: var(--brass2); margin: 8px 0; }
#front .farow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0; }
#front .fpit { position: relative; aspect-ratio: 1; border-radius: 50%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 3px; padding: 18%;
  background: radial-gradient(circle at 50% 35%, #0e0703, #2c180c 70%); box-shadow: inset 0 3px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,210,150,.15); }
#front .fpit i { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6e6c8, #9a7a52); }
#front .fpit b { position: absolute; bottom: -3px; right: 0; font-size: 9px; color: rgba(243,230,204,.7); font-weight: 600; }
#front .fpit.can { box-shadow: inset 0 3px 6px rgba(0,0,0,.8), 0 0 0 1.5px var(--brass2), 0 0 12px rgba(233,194,122,.35); cursor: pointer; }
#front .fmsg { font-size: 11px; letter-spacing: .2em; color: #ffe8c0; margin: 12px 0 8px; }
#front .facts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- THE FREED, ON ONE GLASS (2026-10-22, the user: "I don't have to
   scroll down at all, everything is on the screen, especially the army side"): the page takes the whole width, the tray under
   it; three columns — the freed, the one chosen, its rank-up — each its own height, nothing below the glass */
.tray[data-page="freed"] .tpanel { left: max(12px, env(safe-area-inset-left)); width: auto; top: max(10px, env(safe-area-inset-top)); }
.tray[data-page="freed"] .ttop { opacity: 0; pointer-events: none; }
.tray[data-page="freed"] .tph { padding-top: 10px; padding-bottom: 10px; }
.tray[data-page="freed"] .tpb { overflow: hidden; padding: 10px 16px 12px 18px; }
.tray .army3 { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.tray .army3 > div { min-height: 0; display: flex; flex-direction: column; }
.tray .a-cards { min-width: 0; }
.tray .a-tally { flex: none; display: flex; gap: 18px; margin-bottom: 8px; font-size: 9px; letter-spacing: .2em; color: rgba(243,230,204,.6); }
.tray .a-tally b { margin-left: 6px; font-size: 13px; letter-spacing: .04em; color: var(--ivory); }
.tray .a-tally b em { font-style: normal; font-size: .7em; color: rgba(243,230,204,.5); }
.tray .a-tally b.full { color: var(--brass2); }
.tray .a-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-auto-rows: min-content; gap: 7px; align-content: start; padding: 2px; }
.tray .a-card { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 4px 4px 5px; border-radius: 6px; text-align: center; color: var(--ivory);
  background: linear-gradient(180deg, rgba(70,40,18,.85), rgba(24,13,6,.95)); box-shadow: inset 0 0 0 1px rgba(201,149,74,.35); transition: box-shadow .15s, transform .12s; }
.tray .a-card:active { transform: scale(.96); }
.tray .a-card .art { position: relative; height: 50px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: radial-gradient(circle at 50% 40%, rgba(255,210,150,.12), transparent 70%); }
.tray .a-card .art img, .tray .a-card .art svg { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); max-width: none; object-fit: contain; }
.tray .a-card b { margin-top: 3px; font-size: 8.5px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray .a-card i { font-style: normal; font-size: 7.5px; letter-spacing: .12em; color: rgba(243,230,204,.55); }
.tray .a-card i.gold { color: var(--brass2); }
.tray .a-card u { position: absolute; top: 3px; right: 3px; text-decoration: none; font-size: 6.5px; letter-spacing: .1em; padding: 1px 3px; border-radius: 3px; background: rgba(233,194,122,.9); color: #2a1608; font-weight: 700; }
.tray .a-card u.rest { background: rgba(160,160,170,.85); }
.tray .a-card.fielded { box-shadow: inset 0 0 0 1px rgba(233,194,122,.75); }
.tray .a-card.sel { box-shadow: inset 0 0 0 2px var(--brass2), 0 0 14px rgba(233,194,122,.35); }
.tray .a-card.resting { opacity: .6; }
.tray .a-who { padding: 0 2px; overflow: hidden; }
.tray .a-who .a-face { flex: none; position: relative; overflow: hidden; height: 74px; display: grid; place-items: center; border-radius: 6px; background: radial-gradient(circle at 50% 40%, rgba(255,210,150,.14), transparent 70%); box-shadow: inset 0 0 0 1px rgba(201,149,74,.25); }
.tray .a-who .a-face img, .tray .a-who .a-face svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; object-fit: contain; }
.tray .a-who h4 { margin: 7px 0 0; font: 600 18px/1.05 var(--name); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray .a-who .tier { margin-top: 2px; font-size: 8.5px; letter-spacing: .16em; color: rgba(243,230,204,.6); }
.tray .a-who .tier.gold { color: var(--brass2); }
.tray .a-kv { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 7px 0 5px; font-size: 8.5px; letter-spacing: .14em; color: rgba(243,230,204,.55); }
.tray .a-kv b { color: var(--ivory); letter-spacing: .06em; }
.tray .a-who .dnote { font-size: 10px; line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tray .a-who .drow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.tray .a-who .drow .hb { min-height: 34px; padding: 0 6px; font-size: 9px; letter-spacing: .14em; }
.tray .a-rank { padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(201,149,74,.28); }
.tray .a-rank:empty { background: none; box-shadow: none; }
.tray .a-rank .rh { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tray .a-rank .rh span { font-size: 8.5px; letter-spacing: .18em; font-weight: 700; color: var(--brass2); }
.tray .a-rank .rh b { font-size: 12px; letter-spacing: .06em; color: var(--ivory); }
.tray .a-rank .dnote { flex: none; font-size: 9.5px; line-height: 1.4; margin: 4px 0 7px; }
.tray .a-give { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 5px; align-content: start; }
.tray .a-give .gchip { min-height: 34px; padding: 3px 6px; font-size: 9px; }
.tray .a-rank .a-go { flex: none; margin-top: 7px; min-height: 38px; }
/* (a tall glass: the three columns one over the other, the freed's grid shortest) */
@media (max-aspect-ratio: 23/20) { .tray .army3 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; } .tray[data-page="freed"] .tpanel { top: 10px; } }
/* (the givers' small faces stay in their chips) */
.tray .a-give .gchip .th { position: relative; overflow: hidden; }
.tray .a-give .gchip .th img, .tray .a-give .gchip .th svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---- (2026-10-22, the user's screenshot: with many freed the page ran off the glass) the freed's page is held to the glass:
   its wrapper never grows past it, each column is exactly as tall as the page, the grids are sized to fit (hub.js fitArmy) */
.tray[data-page="freed"] .tpb > .hpane { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.tray .army3 { grid-template-rows: minmax(0, 1fr); height: 100%; }
.tray .army3 > div { overflow: hidden; }
.tray .a-grid, .tray .a-give { overflow: hidden !important; justify-content: start; }
.tray .a-grid .a-card { min-width: 0; min-height: 0; padding: 3px; }
.tray .a-grid .a-card .art { height: auto; flex: 1; min-height: 0; }
.tray .a-grid .a-card b { font-size: clamp(6.5px, calc(var(--cw, 70px) * .12), 9px); }
.tray .a-grid .a-card i { font-size: clamp(6px, calc(var(--cw, 70px) * .1), 7.5px); }
.tray .a-grid.tiny .a-card i { display: none; }
.tray .a-grid.tiny .a-card u { font-size: 5.5px; padding: 0 2px; }
.tray .a-grid.mini .a-card b { display: none; }
.tray .a-give .gchip { min-height: 0; height: 100%; padding: 2px 5px; gap: 4px; }
.tray .a-give .gchip b { font-size: clamp(7px, calc(var(--cw, 120px) * .075), 9.5px); }
.tray .a-give .gchip .th { width: auto; height: 100%; aspect-ratio: .8; }
.tray .a-give .gchip u { font-size: 6px; }
.tray .a-rank .a-acts { flex: none; display: grid; grid-template-columns: 1fr 1.2fr; gap: 6px; margin-top: 7px; }
.tray .a-rank .a-acts .hb { min-height: 38px; padding: 0 6px; font-size: 9px; letter-spacing: .12em; }
.tray .a-who .drow { flex: none; }
.tray .a-who .dnote { flex: 0 1 auto; min-height: 0; }
.tray .a-grid, .tray .a-give { width: 100%; min-width: 0; grid-template-columns: 1fr; }
.tray .army3 > div { min-width: 0; }
