/* The Creature Board in "My room": the stable screen and the battle screen (src/board.js). */
.board { position: absolute; inset: 0; z-index: 25; font-family: 'Cormorant Garamond', serif; color: #f3e8c7; }
.board[hidden] { display: none; }
.board button { font-family: inherit; }
.board-btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .55); background: rgba(20, 14, 8, .7); color: #f6ead0; font: 700 17px 'Cormorant Garamond', serif; cursor: pointer; }
.board-btn.gold { background: linear-gradient(#f4cf6d, #d9a437); color: #2a1a02; border-color: #8a5a17; }
.board-btn.on { border-color: #9be29b; color: #c9f5c9; }
.board-btn.big { min-height: 52px; padding: 10px 26px; font-size: 20px; }
.board-btn.round { width: 44px; padding: 0; font-size: 26px; line-height: 1; }
.board-btn:disabled { opacity: .45; cursor: default; }
.board-link { border: 0; background: none; padding: 4px 2px; color: #d9c690; font: 600 16px 'Cormorant Garamond', serif; text-decoration: underline; cursor: pointer; }

/* the stable */
.board.stable { display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px 12px; background: rgba(6, 4, 2, .62); overflow: auto; }
.board-sheet { width: min(1080px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; padding: 18px 20px 14px; border-radius: 16px; border: 1px solid rgba(212, 175, 55, .6); background: rgba(16, 11, 6, .95); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.board-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.board-head h2 { margin: 0; flex: 1; font: 700 clamp(20px, 2.6vw, 28px) 'Cinzel', serif; color: #f6d96a; letter-spacing: .04em; }
.board-purse { padding: 6px 14px; border-radius: 999px; background: rgba(212, 175, 55, .16); border: 1px solid rgba(212, 175, 55, .5); font-weight: 700; font-size: 18px; color: #f6d96a; }
.board-x { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #f3e8c7; font: 700 16px 'Cormorant Garamond', serif; cursor: pointer; }
.board-lead { margin: 8px 0 14px; font-size: 18px; line-height: 1.3; color: #e6d8b0; }
.board-pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 12px; }
.pet { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, .28); background: rgba(255, 255, 255, .04); }
.pet.picked { border-color: rgba(155, 226, 155, .7); }
.pet.away .face { filter: brightness(.82); }
/* the room's own words step aside while the board is open */
.boarding .room-status, .boarding .say, .boarding .prompt, .boarding .pads, .boarding .stick { display: none !important; }
.face { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #b9bcc0; }
.face.small { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 2px solid rgba(212, 175, 55, .7); }
.pet-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pet-body h3 { margin: 0; font: 700 18px 'Cinzel', serif; color: #f6ead0; }
.pet-body p { margin: 0; font-size: 16px; line-height: 1.25; }
.pet-class { color: #d9c690; font-style: italic; }
.pet-level { font-weight: 700; font-size: 18px !important; color: #f6d96a; }
.pet-work { color: #cdbf9a; }
.pet-need { color: #ffcf9a; }
.pet-about { color: #d8ccaa; flex: 1; }
.pet-body .board-btn { margin-top: auto; }
.pet-body .board-btn + .board-btn { margin-top: 0; }
.pips { display: flex; gap: 3px; }
.pips i { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.pips i.may { background: rgba(246, 217, 106, .32); }
.pips i.on { background: linear-gradient(#f6d96a, #d4af37); }
.board-ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, .28); background: rgba(255, 255, 255, .04); }
.ladder-pick { display: flex; align-items: center; gap: 12px; flex: 1 1 380px; }
.ladder-who { flex: 1; }
.ladder-who h3 { margin: 2px 0 6px; font: 700 19px 'Cinzel', serif; color: #f6ead0; }
.ladder-step { margin: 0; font-size: 15px; color: #d9c690; letter-spacing: .04em; text-transform: uppercase; }
.ladder-foes { display: flex; gap: 12px; }
.foe { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; }
.ladder-go { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ladder-note { margin: 0; font-size: 16px; line-height: 1.25; color: #e6d8b0; }
.board-dev { margin: 10px 0 0; font-size: 15px; color: #a99c78; }

/* a battle: the table shows through; name plates at the top, the moves and questions at the bottom */
.board.fight { display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.board.fight > * { pointer-events: auto; }
.plates { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 14px 0; }
.plate { display: flex; align-items: center; gap: 10px; width: min(300px, 40vw); padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(212, 175, 55, .55); background: rgba(14, 10, 6, .86); }
.plate.foes { flex-direction: row-reverse; text-align: right; }
.plate-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.plate-text b { font: 700 17px 'Cinzel', serif; color: #f6ead0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-text span { font-size: 15px; color: #d9c690; }
.hp { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.hp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6fcf7a, #b6ec8a); transition: width .5s; }
.hp i.low { background: linear-gradient(90deg, #e2603f, #f0a05a); }
.plate.foes .hp i { margin-left: auto; }
.dots { display: flex; gap: 4px; }
.plate.foes .dots { justify-content: flex-end; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.dots i.on { background: #f6d96a; }
.versus { align-self: center; padding: 4px 12px; border-radius: 999px; background: rgba(14, 10, 6, .7); font: 700 14px 'Cinzel', serif; color: #f6d96a; text-align: center; }
.fight-panel { margin: 0 auto max(14px, env(safe-area-inset-bottom)); width: min(760px, calc(100% - 24px)); box-sizing: border-box; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(212, 175, 55, .6); background: rgba(14, 10, 6, .93); text-align: center; }
.fight-line { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.fight-line.big { margin: 6px 0; font: 700 22px 'Cinzel', serif; color: #f6ead0; }
.moves { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ask-what { margin: 0; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; color: #d9c690; }
.ask-prompt { margin: 4px 0 12px; font: 700 26px 'Cormorant Garamond', serif; color: #fff4d0; line-height: 1.2; }
.ask-prompt.big { font: 400 78px/1.05 'Noto Serif SC', 'Songti SC', 'PingFang SC', serif; }
.ask.number .ask-prompt { font-size: 40px; letter-spacing: .04em; }
.ask.type .ask-prompt { font: 700 34px ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; }
.ask-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ask-opts .opt { flex: 1 1 200px; max-width: 100%; border-radius: 14px; font-size: 18px; line-height: 1.2; }
.ask-opts.big .opt { flex: 0 1 120px; font: 400 54px/1.1 'Noto Serif SC', 'Songti SC', 'PingFang SC', serif; }
.opt.right { background: #2f6b3a; border-color: #9be29b; opacity: 1 !important; }
.opt.wrong { background: #6b2f2a; border-color: #f0a090; opacity: 1 !important; }
.ask-form { display: flex; justify-content: center; gap: 10px; }
.ask-form input { width: min(360px, 100%); padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, .6); background: #1b1408; color: #fff4d0; font: 700 26px ui-monospace, 'SF Mono', Menlo, monospace; text-align: center; }
.ask-note { margin: 0 0 10px; font-size: 16px; color: #d9c690; }
.sand { margin: 12px auto 0; width: min(360px, 100%); height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.sand i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #d4af37, #f6d96a); }
.verdict { margin: 10px 0 0; font: 700 20px 'Cinzel', serif; }
.verdict.good { color: #9be29b; }
.verdict.bad { color: #ffb59a; }
.fight-end h2 { margin: 0 0 6px; font: 700 28px 'Cinzel', serif; color: #f6d96a; }
@media (max-width: 640px) {
  .board-pets { grid-template-columns: repeat(2, 1fr); }
  .versus { display: none; }
  .ask-prompt.big { font-size: 60px; }
}

/* the duelling ground (src/arena.js): name tags that follow the creatures, and the team battle screens */
.arena-tags { position: absolute; inset: 0; z-index: 24; pointer-events: none; overflow: hidden; }
.arena-tags[hidden] { display: none; }
.arena-tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 92px; will-change: transform; transition: opacity .5s; }
.arena-tag.out { opacity: 0; }
.arena-tag b { padding: 1px 8px; border-radius: 999px; background: rgba(14, 10, 6, .72); font: 700 13px 'Cinzel', serif; color: #fff4d0; white-space: nowrap; }
.arena-tag.foes b { color: #ffd9c9; }
.arena-tag .hp { width: 92px; height: 9px; border: 1px solid rgba(0, 0, 0, .6); background: rgba(20, 14, 8, .8); }
.arena-tag.foes .hp i { background: linear-gradient(90deg, #e2603f, #f0905a); margin: 0; }
.arena-num { position: absolute; left: 50%; bottom: 100%; font: 900 30px 'Cinzel', serif; font-style: normal; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0, 0, 0, .8); white-space: nowrap; animation: arena-num 1.25s ease-out forwards; }
.arena-num.bad { color: #ffb08a; }
.arena-num.good { color: #b6f5a8; }
@keyframes arena-num { 0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -6px) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -64px) scale(1); opacity: 0; } }
.fight-title { align-self: center; display: flex; gap: 12px; align-items: baseline; margin-top: max(62px, calc(env(safe-area-inset-top) + 54px)); padding: 5px 16px; border-radius: 999px; background: rgba(14, 10, 6, .78); border: 1px solid rgba(212, 175, 55, .5); }
.fight-title b { font: 700 16px 'Cinzel', serif; color: #f6d96a; }
.fight-title span { font-size: 15px; color: #e6d8b0; }
.fight-call { align-self: center; margin: auto 12px max(26px, env(safe-area-inset-bottom)); padding: 10px 26px; border-radius: 999px; background: rgba(14, 10, 6, .82); border: 1px solid rgba(212, 175, 55, .6); font: 700 clamp(18px, 2.6vw, 26px) 'Cinzel', serif; color: #fff4d0; text-align: center; }
.board.fight .fight-panel { margin-top: auto; width: min(900px, calc(100% - 24px)); padding: 12px 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .35); background: rgba(255, 255, 255, .05); color: #f3e8c7; text-align: left; }
button.chip { cursor: pointer; }
.chip .face.small { width: 42px; height: 42px; }
.chip-text { display: flex; flex-direction: column; line-height: 1.1; }
.chip-text b { font: 700 15px 'Cinzel', serif; }
.chip-text i { font-style: normal; font-size: 14px; color: #d9c690; }
.chip.on { border-color: #f6d96a; background: rgba(246, 217, 106, .16); box-shadow: 0 0 0 2px rgba(246, 217, 106, .35); }
.chip.done { opacity: .5; }
.chip.out { opacity: .3; filter: grayscale(1); }
.board.fight .moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.move { display: flex; flex-direction: column; gap: 1px; min-height: 52px; padding: 7px 10px; border-radius: 12px; border: 1px solid #8a5a17; background: linear-gradient(#f4cf6d, #d9a437); color: #2a1a02; cursor: pointer; text-align: center; }
.move b { font: 700 17px 'Cinzel', serif; }
.move i { font-style: normal; font-size: 14px; line-height: 1.1; }
.move.heal { background: linear-gradient(#bfe9a8, #7fc070); border-color: #2f6b3a; }
.move.guard, .move.boost { background: linear-gradient(#bcd6ff, #7fa6e6); border-color: #2a4a8a; }
.move.stun { background: linear-gradient(#e2c6ff, #a98be0); border-color: #4a2f8a; }
.move:disabled { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #a99c78; cursor: default; }
.pet-moves { color: #cdbf9a; }
@media (max-width: 640px) { .board.fight .moves { grid-template-columns: repeat(2, 1fr); } .arena-tag b { font-size: 11px; } .arena-tag, .arena-tag .hp { min-width: 64px; width: 64px; } }

/* the Chocolate Frog card album (src/cards.js) */
.album { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px 12px; background: rgba(6, 4, 2, .7); font-family: 'Cormorant Garamond', serif; color: #f3e8c7; overflow: auto; }
.album[hidden] { display: none; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.card { position: relative; display: block; padding: 0; aspect-ratio: 2 / 3; border-radius: 10px; border: 3px solid #b98a2e; background: #241a0c; overflow: hidden; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); transition: transform .15s; }
button.card:hover { transform: translateY(-4px) rotate(-1deg); }
.card.rare { border-color: #ffd86a; box-shadow: 0 0 0 2px rgba(255, 216, 106, .45), 0 0 18px rgba(255, 216, 106, .5); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-plate { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 1px; padding: 14px 6px 6px; background: linear-gradient(transparent, rgba(10, 6, 2, .92) 45%); text-align: center; color: #fff4d0; }
.card-plate b { font: 700 13px/1.1 'Cinzel', serif; }
.card-plate i { font-style: normal; font-size: 12px; line-height: 1.1; color: #e2cf9a; }
.card em { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 999px; background: #d94a3a; color: #fff; font: 700 12px 'Cinzel', serif; font-style: normal; }
.card.back { display: grid; place-items: center; cursor: default; border-color: #5a4520; background: repeating-linear-gradient(45deg, #2a1d3a, #2a1d3a 10px, #33244a 10px, #33244a 20px); }
.card.back span { font: 900 46px 'Cinzel', serif; color: rgba(246, 217, 106, .5); }
.album-big { position: fixed; inset: 0; z-index: 26; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 0, .8); }
.album-one { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; max-width: 760px; }
.card.big { width: min(300px, 70vw); cursor: default; }
.card.big .card-plate b { font-size: 20px; }
.card.big .card-plate i { font-size: 16px; }
.album-fact { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.album-fact h3 { margin: 0; font: 700 28px 'Cinzel', serif; color: #f6d96a; }
.album-fact p { margin: 0; font-size: 20px; line-height: 1.3; }
.album-fact .eyebrow { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #d9c690; }
.album-title { font-style: italic; color: #e2cf9a; }
