:root { --ink: #1d1d2b; --sea: #bde8f5; --sand: #f2e6c9; --sun: #ffc43d; --teal: #14a3a3; --coral: #e76f51; font-family: Nunito, "Segoe UI", Arial, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(160deg, #bde8f5 0%, #fff4d6 60%, #ffd6a5 100%); min-height: 100vh; }
button { font: inherit; cursor: pointer; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; background: #fff; box-shadow: 0 3px 0 var(--ink); margin: 3px; }
button:hover { background: #fff4d6; } button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
button.main { background: var(--sun); font-weight: 800; font-size: 1.1em; padding: 10px 22px; }
button.ghost { box-shadow: none; border-color: #0003; }
select, input { font: inherit; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 8px; }

.start { max-width: 560px; margin: 8vh auto; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 8px 0 var(--ink); text-align: center; }
.start h1 { font-size: 2.6em; margin: 0; color: var(--coral); text-shadow: 3px 3px 0 var(--sun); }
.start .row { margin: 14px 0; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.start small { color: #555; }

.board { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.board svg { width: 100%; height: 100%; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 12px; }
.card h3 { margin: 0 0 6px; font-size: 1em; }
.status { font-weight: 800; }
.player { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.player .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.player.current { background: #fff4d6; border-radius: 8px; }
.player .stats { margin-left: auto; font-size: 0.85em; text-align: right; }
/* dice: cubes that tumble and land (app/main.js: dieCube, tumble) */
.dice3d { display: flex; gap: 10px; } .persp { display: inline-block; perspective: 220px; } /* each cube its own viewpoint: square on at rest */
.cube { --h: 17px; position: relative; display: inline-block; flex: none; width: calc(var(--h) * 2); height: calc(var(--h) * 2); transform-style: preserve-3d; }
.cube .f { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 4px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; backface-visibility: hidden; }
.cube .f i { display: block; } .cube .f .pip { margin: 1.5px; border-radius: 50%; background: var(--ink); } .cube .f .pip.one { margin: 0; background: #e63946; }
.rolling { animation: hop .17s ease-out 4 alternate; } @keyframes hop { to { transform: translateY(-7px); } }
.actions button { display: block; width: calc(100% - 6px); text-align: left; }
.log { font-size: 0.85em; max-height: 260px; overflow-y: auto; } .log div { padding: 2px 0; border-bottom: 1px dashed #0002; } .log .era { font-weight: 800; color: var(--teal); }
.gain { color: #2a9d5c; font-weight: 700; }
.final table { width: 100%; border-collapse: collapse; font-size: 0.85em; } .final td:first-child { white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; } .final td, .final th { border-bottom: 1px solid #0002; padding: 3px; text-align: right; } .final td:first-child, .final th:first-child { text-align: left; }
.king { font-size: 1.4em; font-weight: 800; color: var(--coral); }

svg .clickable { cursor: pointer; } svg .target { animation: pulse 0.9s infinite alternate; }
@keyframes pulse { from { stroke-width: 1.2; } to { stroke-width: 3; } }
.now { border-color: #ff9f1c; background: #fff4d6; }
#link { font-size: 0.8em; margin: 4px 0; }
.start .cover { width: 100%; max-width: 360px; border-radius: 12px; border: 3px solid var(--ink); margin-bottom: 8px; }
.board3d { width: 100%; height: 100%; display: block; touch-action: none; }
.board { position: relative; }
.charter { border: 2.5px solid var(--c); border-radius: 10px; padding: 0 8px 6px; margin: 4px 0; background: #fff; overflow: hidden; }
.charter .cband { background: var(--c); color: #fff; font-weight: 800; margin: 0 -8px; padding: 4px 8px; text-shadow: 0 0 3px rgba(0,0,0,.5); }
.charter .cband small { display: block; font-size: 0.72em; font-weight: 700; opacity: .9; }
.charter .cpic { height: 64px; margin: 0 -8px 4px; background: var(--c) center / cover no-repeat; }
.charter .ladder { width: 100%; border-collapse: collapse; font-size: 0.82em; } .charter .ladder td, .charter .ladder th { text-align: center; padding: 1px 2px; }
.charter .ladder th { color: #f4a100; } .charter .ladder th:nth-child(-n+2) { color: #666; font-weight: 600; }
.charter .ladder td.pic { text-align: left; white-space: nowrap; line-height: 0; } .charter .ladder td.pic img { height: 28px; } .charter .ladder td.pic img + img { margin-left: -3px; }
.charter .ladder .here { background: #fff3c4; font-weight: 800; } .charter .ladder tr.next td { background: #e6f4ea; } .charter .ladder tr.next td.here { background: #c8ecd2; }
.charter button { width: 100%; margin: 4px 0 0; }
.row4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 6px; } .row4 .charter { margin: 0; font-size: 0.85em; }
.small { font-size: 0.82em; } .quirk { color: #5a189a; }
.action-card { border: 2px dashed #9b5de5; border-radius: 10px; padding: 5px 8px; margin: 4px 0; background: #f8f0ff; }
.action-card button { padding: 2px 10px; margin: 4px 4px 0 0; }
.hot { color: #e63946; } .roll { font-weight: 800; } .roll.good { color: #2a9d5c; } .roll.bad { color: #e63946; }
.player.out { opacity: 0.45; } .player .dot { display: flex; align-items: center; justify-content: center; font-size: 10px; }
#headline { position: absolute; top: calc(var(--top) + 8px); left: 50%; transform: translate(-50%, -12px); max-width: 78%; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 14px; background: #fffdf5; box-shadow: 0 6px 0 var(--ink); font-size: 1.05em; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 5; }
#headline.on { opacity: 1; transform: translate(-50%, 0); } #headline.bad { background: #ffe3e3; border-color: #c1121f; } #headline .why { font-weight: 400; font-size: 0.85em; color: #555; }
svg .float { animation: floatup 2.2s ease-out forwards; } svg .float.good { fill: #2a9d3f; } svg .float.bad { fill: #d62828; }
@keyframes floatup { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.buildroll { font-weight: 900; align-self: center; margin-left: 6px; } .buildroll.good { color: #2a9d3f; } .buildroll.bad { color: #d62828; }
.why { color: #555; font-size: 0.9em; }
.late { animation: appear .25s ease-out var(--late) both; } @keyframes appear { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- the table (pattern from Tidelands): a wooden table fills the page; the board lies on it
   between the players' pennants (top) and the dock with my money, cards and the turn's prompt (bottom) ---------- */
.table { position: fixed; inset: 0; overflow: hidden; --top: 118px; --gap: 12px;
  background-color: #a3602b;
  background-image: repeating-linear-gradient(90deg, rgba(40, 18, 4, .32) 0 2px, transparent 2px 150px),
    repeating-linear-gradient(90deg, rgba(255, 220, 170, .07) 0 6px, rgba(60, 25, 5, .07) 6px 17px, rgba(255, 220, 170, .04) 17px 29px, transparent 29px 41px),
    radial-gradient(ellipse at 50% 45%, #b8743a 0%, #9c5a27 70%, #82481d 100%); }
.table .board { position: absolute; inset: 0; } /* the 3D board's own wooden table fills the page */

/* The 2D table: the board lies in the middle of a bigger table (1 px = 1 mm before zooming) with the hotel cards
   beside it and every seat round it (app/table-layout.js); drag or scroll to move round it, Ctrl + wheel to zoom */
#table2d { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
#table2d.dragging { cursor: grabbing; }
#table2d .world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#table2d .wboard { position: absolute; left: 0; top: 0; width: var(--board-w); height: var(--board-h); } /* sizes set from board.js */
#table2d .wpiles { position: absolute; left: 0; top: 0; pointer-events: none; } /* the card piles beside the board, in table mm */
#table2d .wpiles svg { display: block; overflow: visible; }
#table2d .wboard svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.seat { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.seat .mat { position: absolute; background: var(--pc); border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 3px 8px rgba(0, 0, 0, .35); }
.seat.turn .mat { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 4px var(--sun), 0 0 26px 6px var(--sun); }
.seat.out { opacity: .4; }
.seat .tag { position: absolute; height: 20px; line-height: 16px; padding: 0 9px; border-radius: 10px; background: var(--pc); border: 2px solid #fff; color: #fff; font-weight: 900; font-size: 12px; white-space: nowrap; z-index: 500; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.seat .tc { position: absolute; border-radius: 3px; box-shadow: 0 1.5px 3px rgba(0, 0, 0, .45); background: #fff; }
.seat .tc.note { border-radius: 1.5px; }
.seat .tc[data-deed], .seat .tc[data-hand], .seat .tc[data-character] { cursor: pointer; }
.seat .tc[data-deed]:hover, .seat .tc[data-hand]:hover, .seat .tc[data-character]:hover { outline: 2px solid #fff; }
.seat .tc.glow { animation: cardglow2d 1.1s ease-in-out infinite alternate; }
.panel { background: #fffdf7; border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 12px; }
[hidden] { display: none !important; }

/* top: a rope with the pennants left, the plaque (season and dice) in the middle, round buttons right */
#bar { position: absolute; left: 0; right: 0; top: 0; z-index: 12; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 10px; pointer-events: none; }
#bar::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 4px; background: #7a5230; border-bottom: 1px solid #4a3019; box-shadow: 0 2px 2px rgba(0, 0, 0, .25); }
#bar > * { pointer-events: auto; }
.flags { display: flex; gap: 10px; align-items: flex-start; }
.pennant { --w: 118px; position: relative; width: var(--w); padding-top: 4px; transition: transform .3s; }
.pennant::before { content: ''; position: absolute; left: -4px; right: -4px; top: 3px; height: 7px; border-radius: 4px; background: #5b3b1f; z-index: 1; }
.pennant .cloth { background: var(--pc); padding: 9px 7px 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%); transform-origin: 50% 0; }
.pennant .label { background: #fffdf7; border-radius: 7px; padding: 4px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pennant .nm { font-weight: 800; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pennant .pts { font-weight: 800; font-size: 17px; line-height: 1.2; }
.pennant .worth { font-weight: 700; font-size: 11px; line-height: 1.1; color: #555; margin-bottom: 1px; }
.pennant .mini { display: flex; gap: 6px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.pennant.me .label { box-shadow: inset 0 0 0 2px var(--teal); }
.pennant.turn { transform: translateY(12px); } .pennant.turn .cloth { animation: sway 2.6s ease-in-out infinite alternate; }
.pennant.turn .label { background: #fff3bf; box-shadow: 0 0 0 3px var(--sun); }
.pennant.out { opacity: .5; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.plaque { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); text-align: center; padding: 6px 16px 7px; border-radius: 12px; background: #fffdf7; border: 3px solid #7a5230; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); min-width: 200px; }
.plaque::before, .plaque::after { content: ''; position: absolute; top: -10px; width: 3px; height: 10px; background: #5b3b1f; } .plaque::before { left: 22%; } .plaque::after { right: 22%; }
.plaque .round { font-weight: 800; } .plaque .dice3d { justify-content: center; margin-top: 4px; min-height: 36px; }
.tools { display: flex; gap: 6px; padding-top: 14px; }
button.icon { width: 40px; height: 40px; padding: 0; margin: 0; display: grid; place-items: center; font-size: 18px; line-height: 1; border-radius: 50%; }
button.icon.on { background: var(--sun); } button.icon.speedbtn { width: auto; border-radius: 20px; padding: 0 10px; font-size: 13px; }

/* bottom: the dock - the turn's prompt over my money and my cards */
#dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 10px 8px; pointer-events: none; }
#dock > * { pointer-events: auto; }
#prompt { position: absolute; bottom: calc(100% + 6px); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 6px; border-radius: 22px; padding: 5px 10px; max-width: min(1100px, 96vw); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); font-weight: 600; }
#prompt p { margin: 0 6px; } #prompt .actions, #prompt .card { display: contents; } #prompt button { margin: 2px; padding: 4px 12px; } #prompt button.main { padding: 6px 18px; }

/* a choice that needs reading opens in the middle of the board (charters, reactions, postcards); the debt
   step sits low on the left so the hotels to sell stay visible and clickable */
#choice { position: absolute; z-index: 14; top: var(--top); bottom: var(--dock-h, 150px); left: var(--gap); right: var(--gap); display: grid; place-items: center; pointer-events: none; padding: 10px; }
#choice > .panel { pointer-events: auto; max-width: min(620px, 94vw); max-height: 100%; overflow: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); padding: 12px 14px; }
#choice > .panel > .card { border: 0; padding: 0; background: none; }
#choice.low { place-items: end start; } #choice.low > .panel { max-width: min(380px, 60vw); }
#choice h3 { margin: 0 0 8px; }
#choice .charter { display: inline-block; vertical-align: top; width: calc(50% - 8px); margin: 4px; }

/* the drawer on the left: the log or the charter row */
#drawer { position: absolute; z-index: 13; left: 10px; top: calc(var(--top) - 4px); width: min(340px, 46vw); max-height: calc(100% - var(--top) - var(--dock-h, 150px) - 10px); overflow: auto; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
#drawer h3 { margin: 0 0 6px; font-size: 0.95em; text-transform: uppercase; letter-spacing: .05em; } #drawer .log { max-height: none; }

@media (max-width: 1000px) { .pennant { --w: 88px; } .pennant .mini { display: none; } .plaque { min-width: 150px; } }
#prompt button { display: inline-block; width: auto; text-align: center; }

/* A drawn card flies from its pile on the board, turns over in the middle and goes to whoever drew it. */
.flycard { position: fixed; left: 0; top: 0; width: 120px; height: 168px; z-index: 60; pointer-events: none; transform-style: preserve-3d; }
.flycard > div { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; box-shadow: 0 8px 24px #0005; border: 3px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; box-sizing: border-box; }
.flycard .back { background: var(--c); transform: rotateY(180deg); }
.flycard .back i { font-size: 46px; font-style: normal; filter: drop-shadow(0 2px 2px #0004); }
.flycard .front { background: #fff; border-color: var(--c); color: #1d1d35; }
.flycard .front i { font-style: normal; font-size: 24px; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: var(--c); color: #fff; }
.flycard .front b { font-size: 15px; } .flycard .front span { font-size: 12px; line-height: 1.25; }


/* The hotel cards on the table, right of the board: the face-down pile and the open row (as on a real table). */
#market { position: absolute; left: var(--row-left); top: 4px; width: 63px; display: flex; flex-direction: column; gap: 6px; }
.tpile { position: absolute; left: 75px; top: 0; width: 63px; height: 88px; }
.tback { position: absolute; inset: 0; transform: translate(var(--o), var(--o)); border-radius: 3px; border: 1.5px solid #fff; background: #3a86ff url('/components/art/back-charter.jpg') center / cover; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.tback.empty { background: none; border: 2px dashed rgba(255, 255, 255, .5); box-shadow: none; }
.tcount { position: absolute; right: -6px; top: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; z-index: 1; }
.tcard { position: relative; flex: none; width: 63px; height: 88px; background: #fff; border-radius: 3px; box-shadow: 0 1.5px 3px rgba(0, 0, 0, .45); cursor: pointer; }
.tcard img { display: block; width: 100%; height: 100%; border-radius: 3px; }
[data-deed] { cursor: pointer; }
.deedbig { text-align: center; margin-bottom: 6px; } .deedbig img { width: min(240px, 60vw); border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); display: block; margin: 0 auto; } .deedbig p { margin: 6px 10px; }
.tfly { position: fixed; z-index: 61; pointer-events: none; transform-style: preserve-3d; transform-origin: 50% 50%; }
.tfly .fface { position: absolute; inset: 0; backface-visibility: hidden; }
.tfly .ffront .tcard { width: 100%; height: 100%; box-sizing: border-box; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.tfly .fback { transform: rotateY(180deg); border-radius: 6px; border: 2px solid #fff; background: #3a86ff url('/components/art/back-charter.jpg') center / cover; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
#rowBtn, #drawer.row { display: none; }
.tcard.glow { cursor: pointer; animation: cardglow 1.1s ease-in-out infinite alternate; }
@keyframes cardglow { from { box-shadow: 0 0 0 3px #ffd60a, 0 3px 7px rgba(0, 0, 0, .35); } to { box-shadow: 0 0 0 5px #ffd60a, 0 0 22px 6px #ffd60a; } }
#table2d .tcard.glow { animation-name: cardglow2d; }
@keyframes cardglow2d { from { box-shadow: 0 0 0 2px #ffd60a, 0 1.5px 3px rgba(0, 0, 0, .35); } to { box-shadow: 0 0 0 3px #ffd60a, 0 0 12px 4px #ffd60a; } }

/* characters expansion: my character in the hand row (level colour), its building on a deed */
.action-card.char small { font-size: 0.72em; font-weight: 700; color: #555; } .action-card.char.used { opacity: 0.6; transform: rotate(-3deg); }
.action-card.char img { display: block; width: 100%; aspect-ratio: 63 / 30; object-fit: cover; object-position: 50% 20%; border-radius: 6px; margin-bottom: 3px; }
.charPick { display: flex; gap: 10px; justify-content: center; } .charPick > div { flex: 0 1 240px; display: flex; flex-direction: column; gap: 6px; } .charPick .action-card { margin: 0; flex: 1; }

/* The actions on the board: a chip where each one happens (icon and price; colour by kind: buy, build, sell, attack,
   move, special), opening into its words with ✔ and ✖ where a click could cost money (docs/design/board-actions.md) */
#chips { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.chip { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 9px 0 2px; border-radius: 16px;
  background: #fffdf7; color: var(--ink); border: 3px solid var(--kc); font-weight: 900; font-size: 14px; white-space: nowrap; pointer-events: auto; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--ink), 0 4px 10px rgba(0, 0, 0, .55); animation: chipin .25s ease-out both; transition: transform .12s; }
/* a ring in the chip's colour keeps rippling out from it, so it is found at once on the busy board */
.chip::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--kc); pointer-events: none; animation: chipping 1.8s ease-out infinite; }
.chip.open::before { display: none; }
@keyframes chipping { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.55, 1.9); } }
.chip:not(.open):hover { transform: translate(-50%, -50%) scale(1.15); z-index: 2; }
.chip .ci { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--kc); font-size: 14px; line-height: 1; flex: none; }
.chip .ci img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.chip:not(:has(.cp)) { padding-right: 2px; }
.chip .cp { display: inline-flex; align-items: center; }
.chip .coin { width: 15px; height: 15px; margin-right: 2px; }
.chip.open { transform: translate(-15px, -50%); z-index: 3; height: auto; min-height: 34px; padding: 3px 3px 3px 2px; border-radius: 18px; cursor: default; box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px color-mix(in srgb, var(--kc) 45%, transparent), 0 6px 16px rgba(0, 0, 0, .5); }
.chip .clabel { display: flex; flex-direction: column; gap: 3px; padding: 3px 6px; font-size: 13px; font-weight: 700; }
.chip .clabel button { margin: 0; padding: 3px 9px; font-size: 12.5px; text-align: left; }
.chip > button { margin: 0 0 0 3px; width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; border: 2px solid #fff; }
.chip > button.ok { background: #2a9d3f; color: #fff; } .chip > button.no { background: #fffdf7; color: var(--ink); border-color: var(--ink); }
@keyframes chipin { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .chip::before { animation: none; opacity: 0; } }
.lift2d { position: fixed; z-index: 62; pointer-events: none; border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); transform-origin: 50% 50%; }
/* a card looked at close up: only the card (a deed with its hotel's card beside it), a line and its buttons under it;
   the table behind goes soft as the card comes close, like an eye focusing on it */
#look { --lh: min(58vh, 470px); position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(30, 16, 4, 0);
  backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: backdrop-filter .45s ease-out, -webkit-backdrop-filter .45s ease-out, background .45s ease-out; cursor: zoom-out; }
#look[hidden] { display: none; }
#look.focus { background: rgba(30, 16, 4, .3); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
#look .lookbody { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#look .lookcards { position: relative; display: flex; gap: 18px; cursor: default; }
#look .lookcards > img, #look .lookpick > img { display: block; height: var(--lh); width: calc(var(--lh) * 63 / 88); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
#look .lookinfo { margin: 0; padding: 5px 14px; border-radius: 16px; background: #fffdf7; border: 2px solid var(--ink); font-size: 14px; cursor: default; }
#look .lookbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; cursor: default; }
#look .lookbtns button { margin: 0; padding: 8px 18px; border-radius: 22px; font-weight: 800; font-size: 15px; }
#look .lookx { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center; margin: 0; }
#look .lookbody > :not(.lookcards), #look .lookcards > img + img, #look .lookx { transition: opacity .25s; }
#look.opening .lookcards > img:first-child, #look.closing .lookcards > img:first-child { visibility: hidden; }
#look.opening .lookx, #look.closing .lookx { opacity: 0; }
#look.opening .lookbody > :not(.lookcards), #look.opening .lookcards > img + img, #look.closing .lookbody > :not(.lookcards), #look.closing .lookcards > img + img { opacity: 0; }
#look.pick { --lh: min(44vh, 360px, calc((94vw - 60px) / 4 * 88 / 63)); }
#look .picks { gap: 16px; flex-wrap: nowrap; justify-content: center; max-width: 94vw; }
#look .lookpick { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: chipin .3s ease-out both; }
#look .lookpick img { cursor: pointer; transition: transform .15s; } #look .lookpick img:hover { transform: translateY(-8px) scale(1.03); }
#look .lookpick button { margin: 0; padding: 8px 16px; border-radius: 22px; font-weight: 800; }
#look .lookpick button { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; } #look .lookpick .bi { width: 26px; height: 26px; } #look .lookpick .coin { width: 18px; height: 18px; }
#look .lookinfo { max-width: min(900px, 92vw); text-align: center; }
#look .lookstage { margin: 0; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; width: calc(var(--lh) * .8); }
#look .lookstage img { width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); animation: chipin .35s ease-out both; }
#look .lookstage figcaption { padding: 4px 12px; border-radius: 14px; background: #fffdf7; border: 2px solid var(--ink); font-size: 14px; }
