
    .nav-search { position: relative; display: flex; align-items: center; margin-left: auto; margin-right: 12px; }
    .nav-search-icon { position: absolute; left: 12px; font-size: 16px; pointer-events: none; }
    #navSearch { width: 200px; padding: 10px 14px 10px 36px; font-size: 14px; border: 1.5px solid rgba(23,63,50,.2); border-radius: 999px; background: #fffdf8; color: #173f32; }
    #navSearch:focus { outline: none; border-color: #173f32; width: 240px; }
    .nav-search-suggest { position: absolute; top: 100%; left: 0; background: #fffdf8; border: 1.5px solid rgba(23,63,50,.15); border-radius: 14px; margin-top: 6px; box-shadow: 0 8px 32px rgba(23,63,50,.15); z-index: 1000; overflow: hidden; min-width: 280px; }
    .nav-search-suggest.hidden { display: none; }
    .nav-search-suggest .search-suggest-title { padding: 10px 14px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a7a; }
    .nav-search-suggest .search-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-top: 1px solid rgba(23,63,50,.06); text-decoration: none; color: inherit; }
    .nav-search-suggest .search-item:hover { background: #f7f1e3; }
    .nav-search-suggest .s-ico { font-size: 20px; }
    .nav-search-suggest .s-text strong { display: block; font-size: 14px; color: #173f32; }
    .nav-search-suggest .s-text span { font-size: 12px; color: #6f6a58; }
    @media (max-width: 768px) {
      .nav-search { margin-right: 8px; }
      #navSearch { width: 120px; font-size: 13px; }
      #navSearch:focus { width: 160px; }
      .nav-search-suggest { min-width: 240px; right: 0; left: auto; }
    }
  

        .game { padding: 72px 20px; max-width: 920px; margin: 0 auto; }
        .game .eyebrow { text-align: center; }
        .game h2 { text-align: center; font: 400 clamp(38px, 7vw, 58px)/1.1 Italiana, Georgia, serif; color: var(--ink); margin: 0 0 10px; }
        .game-sub { text-align: center; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 540px; margin: 0 auto 30px; }
        .game-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: 0 14px 40px rgba(90, 80, 60, .08); }
        .game-screen[hidden] { display: none; }
        .gg-field { margin: 0 0 16px; }
        .gg-field span { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
        .gg-field input { width: 100%; box-sizing: border-box; padding: 14px 16px; font-size: 17px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdf8; color: var(--ink); font-family: inherit; }
        .game-btn { display: inline-block; width: 100%; padding: 15px; font-size: 16px; border: none; border-radius: 14px; background: #173f32; color: #f4f0e8; cursor: pointer; font-family: inherit; touch-action: manipulation; }
        .game-btn.ghost { background: transparent; color: #173f32; border: 1.5px solid rgba(23,63,50,.35); width: auto; flex: 1; padding: 13px 8px; font-size: 14.5px; }
        .game-btn:disabled { opacity: .45; cursor: default; }
        .game-btn:active:not(:disabled) { transform: scale(.98); }
        .fm-day { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #f4f0e8; background: #5c6a52; border-radius: 99px; padding: 7px 16px; margin: 0 0 10px; }
        .fm-dayrow { text-align: center; }
        .fm-stage-label { text-align: center; font: 400 26px Italiana, Georgia, serif; color: var(--ink); margin: 0 0 4px; }
        .fm-count { text-align: center; font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
        .farm-scene { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin: 0 0 6px; }
        .farm-scene svg { width: 100%; height: auto; display: block; }
        .fm-pests { position: absolute; inset: 0; pointer-events: none; }
        .fm-pest { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6b4a2f, #3a2415); border: 2px solid #a33b2e; cursor: pointer; touch-action: manipulation; animation: fm-wiggle .5s infinite alternate ease-in-out; pointer-events: auto; z-index: 3; }
        @keyframes fm-wiggle { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.12); } }
        .fm-hint { text-align: center; color: var(--ink-2); font-size: 14.5px; font-style: italic; min-height: 22px; margin: 8px 0 14px; }
        .fm-meters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
        .fm-meter span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; text-align: center; }
        .fm-bar { height: 10px; border-radius: 99px; background: rgba(23,63,50,.12); overflow: hidden; }
        .fm-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: #5c6a52; transition: width .5s ease; }
        .fm-bar i.low { background: #a33b2e; }
        .fm-actions { display: flex; gap: 10px; }
        .fm-actions .game-btn { flex: 1; }
        .fm-rules { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
        .fm-rules h3 { font: 400 22px Italiana, Georgia, serif; color: var(--ink); margin: 0 0 10px; text-align: center; }
        .fm-rules ul { margin: 0; padding: 0; list-style: none; }
        .fm-rules li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); padding: 7px 2px 7px 26px; position: relative; border-bottom: 1px dashed rgba(23,63,50,.14); }
        .fm-rules li:last-child { border-bottom: none; }
        .fm-rules li:before { content: "✦"; position: absolute; left: 4px; color: #5c6a52; font-size: 12px; top: 11px; }
        .fm-done-title { text-align: center; font: 400 32px Italiana, Georgia, serif; color: var(--ink); margin: 6px 0 8px; }
        .fm-done-sub { text-align: center; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; }
        .fm-total { text-align: center; font-size: 15px; color: var(--ink); margin: 0 0 18px; }
        .gg-board { margin-top: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; }
        .gg-board h3 { font: 400 26px Italiana, Georgia, serif; color: var(--ink); margin: 0 0 4px; text-align: center; }
        .gg-board .gg-board-sub { text-align: center; color: var(--ink-2); font-size: 13.5px; font-style: italic; margin: 0 0 12px; }
        .gg-spot { text-align: center; border: 1.5px solid #c9a227; border-radius: 16px; padding: 18px 14px; margin-bottom: 20px; background: rgba(201,162,39,.07); }
        .gg-spot .gg-crown { font-size: 26px; color: #c9a227; }
        .gg-spot strong { display: block; font-size: 19px; color: var(--ink); margin: 6px 0 2px; }
        .gg-spot span { font-size: 14px; color: var(--ink-2); font-style: italic; }
        .gg-spot .gg-empty { font-style: italic; color: var(--ink-2); font-size: 14.5px; }
        #ggBoard { list-style: none; margin: 0; padding: 0; }
        #ggBoard li { display: flex; align-items: baseline; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
        #ggBoard li:last-child { border-bottom: none; }
        #ggBoard .gg-rank { color: #c9a227; font-weight: 700; min-width: 26px; }
        #ggBoard .gg-who { flex: 1; }
        #ggBoard .gg-who small { display: block; color: var(--ink-2); font-style: italic; font-size: 13px; }
        #ggBoard .gg-g { font-weight: 700; color: #173f32; white-space: nowrap; }
        .arcade { margin-top: 40px; position: relative; border-radius: 26px; padding: 42px 26px 34px; background: radial-gradient(120% 90% at 50% 0%, #173a2d 0%, #0e241d 55%, #091712 100%); border: 1px solid rgba(201,162,39,.35); box-shadow: 0 24px 60px rgba(8,18,14,.5), inset 0 1px 0 rgba(244,240,226,.06); overflow: hidden; }
        .arcade::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 34% at 50% 0%, rgba(201,162,39,.12), transparent 70%); }
        .arcade h3 { font: 400 34px Italiana, Georgia, serif; color: #f4f0e8; margin: 0 0 6px; text-align: center; text-shadow: 0 0 24px rgba(201,162,39,.5); position: relative; }
        .arcade-sub { text-align: center; color: #cfc3a8; font-size: 14.5px; font-style: italic; margin: 0 0 8px; position: relative; }
        .ag-orn { text-align: center; margin: 0 0 18px; position: relative; }
        .ag-orn svg { width: 120px; height: 24px; }
        .ag-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
        .ag-stars span { position: absolute; border-radius: 50%; background: radial-gradient(circle, #ffe9a8 0%, rgba(201,162,39,0) 70%); opacity: .4; animation: ag-float 8s ease-in-out infinite; }
        @keyframes ag-float { 0%, 100% { transform: translateY(0); opacity: .12; } 50% { transform: translateY(-16px); opacity: .55; } }
        .ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
        .ag-grid > * { min-width: 0; }
        .spot-head { text-align: center; font-family: Caveat, cursive; font-size: 24px; color: #c9a227; margin: 16px 0 8px; }
        .spot-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 12px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
        .spot { flex: 0 0 auto; min-width: 126px; background: rgba(20,32,24,.72); border: 1px solid rgba(201,162,39,.4); border-radius: 12px; padding: 10px 12px; }
        .spot-game { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #cdbf9e; margin-bottom: 4px; }
        .spot-name { display: block; font-family: Caveat, cursive; font-size: 21px; color: #f5edd8; line-height: 1.15; word-break: break-word; }
        .spot-name.dim { opacity: .45; font-size: 17px; }
        .spot-score { display: block; font-size: 13px; color: #c9a227; margin-top: 2px; }
        .spot-ov { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(5,10,8,.74); padding: 20px; }
        .spot-box { width: min(340px, 92vw); background: #12241b; border: 1px solid rgba(201,162,39,.55); border-radius: 18px; padding: 26px 22px; text-align: center; }
        .spot-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #c9a227; margin: 0 0 6px; }
        .spot-box h4 { font: 400 26px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 6px; }
        .spot-line { color: #cdbf9e; font-size: 14.5px; margin: 0 0 14px; }
        .spot-box input { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 16px; border-radius: 12px; border: 1.5px solid rgba(201,162,39,.5); background: #0b1a14; color: #f5edd8; font-family: inherit; margin-bottom: 12px; text-align: center; }
        .spot-box .game-btn { width: 100%; }
        .agame { min-width: 0; overflow: hidden; }
        .agame { background: linear-gradient(165deg, rgba(30,62,48,.94), rgba(15,34,26,.96)); border: 1px solid rgba(201,162,39,.28); border-radius: 20px; padding: 20px 18px; box-shadow: 0 12px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(244,240,226,.05); position: relative; }
        .agame h4 { font: 400 22px Italiana, Georgia, serif; color: #f4f0e8; margin: 0 0 4px; text-shadow: 0 0 14px rgba(201,162,39,.35); }
        .ag-how { font-size: 15px; color: #d8c49a; font-style: italic; margin: 0 0 12px; line-height: 1.55; }
        .ag-area { position: relative; height: 180px; border-radius: 14px; background: radial-gradient(100% 110% at 50% 0%, #143327 0%, #0b1e17 100%); border: 1px solid rgba(201,162,39,.22); overflow: hidden; margin-bottom: 12px; touch-action: manipulation; box-shadow: inset 0 2px 14px rgba(0,0,0,.45); }
        .ag-area.press { height: 268px; }
        .ag-foot { display: flex; gap: 10px; align-items: center; }
        .ag-foot .game-btn { flex: 0 0 auto; width: auto; padding: 11px 22px; font-size: 14.5px; }
        .arcade .game-btn { background: linear-gradient(180deg, #dcb84e, #b28a2c); color: #241a06; font-weight: 600; box-shadow: 0 4px 16px rgba(201,162,39,.4), inset 0 1px 0 rgba(255,248,224,.5); }
        .arcade .game-btn:disabled { opacity: .45; box-shadow: none; }
        .ag-score { font-size: 14px; color: #ecdfb8; font-weight: 600; text-shadow: 0 0 12px rgba(201,162,39,.45); }
        .ag-time { font-size: 14px; color: #bfae8e; margin-left: auto; font-variant-numeric: tabular-nums; }
        .ag-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
        .ag-spark { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: radial-gradient(circle, #ffedb5 0%, rgba(220,184,78,.85) 40%, transparent 70%); animation: spark-pop .6s ease-out forwards; }
        @keyframes spark-pop { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6) translateY(-16px); opacity: 0; } }
        .ag-mite { position: absolute; width: 30px; height: 30px; padding: 0; cursor: pointer; background: none; border: none; filter: drop-shadow(0 0 7px rgba(201,162,39,.55)); touch-action: manipulation; }
        .ag-mite svg { width: 100%; height: 100%; display: block; }
        .ag-mite.squished { pointer-events: none; }
        .ag-mite.squished svg { animation: mite-poof .16s ease-out forwards; }
        @keyframes mite-poof { to { transform: scale(2.1); opacity: 0; } }
        .ag-leaf { position: absolute; inset: 8px 20px; width: calc(100% - 40px); height: calc(100% - 16px); filter: drop-shadow(0 0 20px rgba(150,190,160,.28)); }
        .ag-buds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; padding: 12px; box-sizing: border-box; }
        .ag-bud { border: 1px solid rgba(201,162,39,.3); background: radial-gradient(circle at 50% 35%, #1c4433, #0e211a); border-radius: 50%; padding: 7px; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
        .ag-bud svg { width: 100%; height: 100%; display: block; }
        .ag-bud.ready { border-color: #e8c96a; box-shadow: 0 0 0 3px rgba(201,162,39,.35), 0 0 26px rgba(232,201,106,.65); }
        .ag-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; padding: 12px; box-sizing: border-box; }
        .ag-tile { border: 1px solid rgba(201,162,39,.3); background: linear-gradient(160deg, #241c12, #171208); border-radius: 12px; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .ag-tile svg { width: 68%; height: 68%; }
        .ag-tile.empty { background: #100c07; border-color: rgba(201,162,39,.12); }
        .ag-tile.hit { background: radial-gradient(circle at 50% 38%, #2c4522, #141f14); border-color: #e8c96a; box-shadow: 0 0 20px rgba(232,201,106,.45); }
        .ag-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 100%; padding: 12px; box-sizing: border-box; }
        .ag-card { border: 1px solid rgba(201,162,39,.45); background: linear-gradient(160deg, #1d3d30, #0f231b); border-radius: 10px; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .16s ease, box-shadow .16s ease; }
        .ag-card svg { width: 58%; height: auto; display: block; }
        .ag-card.open { background: linear-gradient(160deg, #f3e9d1, #dfcfa9); border-color: #e8c96a; flex-direction: column; gap: 3px; animation: card-pop .18s ease; }
        .ag-card.open .terp-name { font-size: 10px; color: #3a2c14; font-weight: 700; letter-spacing: .02em; }
        .ag-card.open svg { width: 44%; }
        .ag-card.won { background: linear-gradient(160deg, #d9b64a, #a37f27); border-color: #f4e9c8; box-shadow: 0 0 18px rgba(232,201,106,.65); }
        .ag-card.won .terp-name { color: #fffdf8; }
        @keyframes card-pop { 0% { transform: scale(.92); } 100% { transform: scale(1); } }
        .ag-sprouts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 100%; padding: 16px 10px; box-sizing: border-box; align-items: end; }
        .ag-sprout { background: none; border: none; padding: 0; cursor: pointer; position: relative; filter: drop-shadow(0 0 9px rgba(190,210,180,.3)); }
        .ag-sprout svg { width: 100%; height: auto; display: block; }
        .ag-drop { position: absolute; left: 50%; top: 2px; width: 12px; height: 12px; margin-left: -6px; background: radial-gradient(circle at 35% 30%, #ffffff, #a9c8de 55%, #5e7f9e); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); animation: drop-fall .55s ease-in forwards; pointer-events: none; }
        @keyframes drop-fall { to { transform: rotate(-45deg) translate(-8px, 30px); opacity: 0; } }
        @media (max-width: 640px) { .ag-grid { grid-template-columns: 1fr; } .fm-meters { gap: 8px; }
          .arcade { padding: 30px 14px 24px; } .agame { padding: 16px 14px; } }
        .agame.wide { grid-column: 1 / -1; }
        .wm-blades { animation: wm-spin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
        @keyframes wm-spin { to { transform: rotate(360deg); } }
        .ag-area.tall { height: 320px; }
        .ag-match { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 8px; box-sizing: border-box; }
        .ag-piece { background: rgba(244,240,232,.05); border: 1px solid rgba(201,162,39,.2); border-radius: 9px; padding: 3px; cursor: pointer; line-height: 1; transition: box-shadow .12s ease; }
        .ag-piece svg { width: 100%; height: auto; display: block; }
        .ag-piece.sel { outline: 2px solid #e8c96a; box-shadow: 0 0 14px rgba(232,201,106,.6); }
        .ag-press { display: block; width: 74%; max-width: 210px; margin: 10px auto 0; filter: drop-shadow(0 0 14px rgba(201,162,39,.25)); }
        .ag-gauge { position: relative; height: 46px; background: linear-gradient(180deg, #0c1d16, #122a20); border: 1px solid rgba(201,162,39,.45); border-radius: 12px; margin: 10px 14px 8px; box-shadow: inset 0 2px 10px rgba(0,0,0,.55); overflow: hidden; }
        .ag-gauge::after { content: ""; position: absolute; inset: 8px 10px; background: repeating-linear-gradient(90deg, rgba(201,162,39,.3) 0 1px, transparent 1px 12px); pointer-events: none; }
        .ag-zone { position: absolute; left: 35%; right: 35%; top: 7px; bottom: 7px; background: radial-gradient(50% 65% at 50% 50%, rgba(150,220,160,.9), rgba(70,130,80,.35)); border-radius: 8px; box-shadow: 0 0 20px rgba(150,220,160,.55); }
        .ag-marker { position: absolute; top: -4px; bottom: -4px; width: 5px; margin-left: -2.5px; left: 0; background: linear-gradient(180deg, #f4e9c8, #c9a227); border-radius: 3px; box-shadow: 0 0 14px rgba(232,201,106,.9); z-index: 2; }
        .ag-readout { text-align: center; font-size: 13px; color: #bfae8e; margin: 0 0 8px; }
        #ap8Press { width: calc(100% - 28px); margin: 0 14px; }
        .ag-jar { position: relative; height: 100%; border: 3px solid rgba(201,162,39,.5); border-bottom-width: 8px; border-radius: 8px 8px 22px 22px; background: linear-gradient(180deg, rgba(24,46,36,.55), rgba(10,22,17,.75)); overflow: hidden; cursor: pointer; box-sizing: border-box; box-shadow: inset 0 0 30px rgba(0,0,0,.4); }
        .ag-topline { position: absolute; left: 0; right: 0; top: 40px; border-top: 2px dashed rgba(232,201,106,.7); pointer-events: none; }
        .ag-nug { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 0 8px rgba(201,162,39,.22)); background-size: cover; }
        /* ===== Handmade Hogwarts greenhouse layer: ink, parchment, candlelight ===== */
        .game { -webkit-tap-highlight-color: transparent; }
        .game-wrap { background: linear-gradient(168deg, #2b2114 0%, #191008 100%); border: 2px solid rgba(201,162,39,.5); border-radius: 24px 28px 22px 30px/30px 22px 28px 24px; position: relative; color: #ecdfc2; box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(244,240,226,.06); }
        .game-wrap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: .09; }
        .game-wrap .fm-stage-label { color: #f2e7c9; font-family: 'IM Fell English', Georgia, serif; font-size: 28px; }
        .game-wrap .fm-count, .game-wrap .fm-hint { color: #c9b586; }
        .game-wrap .fm-meter span { color: #b39d6e; }
        .game-wrap .fm-bar { background: rgba(233,220,189,.14); }
        .game-wrap .fm-rules { border-top: 1px dashed rgba(201,162,39,.4); }
        .game-wrap .fm-rules h3 { color: #f2e7c9; font-family: 'IM Fell English', Georgia, serif; }
        .game-wrap .fm-rules li { color: #d8c49a; border-bottom: 1px dashed rgba(201,162,39,.22); font-family: 'IM Fell English', Georgia, serif; font-style: italic; }
        .game-wrap .fm-rules li:before { color: #c9a227; }
        .game-wrap .fm-done-title { color: #f2e7c9; font-family: 'IM Fell English', Georgia, serif; }
        .game-wrap .fm-done-sub { color: #d8c49a; font-family: 'IM Fell English', Georgia, serif; font-style: italic; }
        .game-wrap .fm-total { color: #ecdfc2; }
        .game-wrap .fm-total strong { color: #e8c96a; }
        .game .game-btn { font-family: Caveat, cursive; font-size: 22px; font-weight: 700; letter-spacing: .02em; color: #f6e8c8; background: radial-gradient(circle at 35% 28%, #a54434, #7a2e22 72%); border: 2px solid #571f16; border-radius: 18px 22px 16px 24px/24px 16px 22px 18px; box-shadow: inset 0 2px 5px rgba(255,220,180,.35), inset 0 -5px 9px rgba(0,0,0,.5), 0 5px 16px rgba(0,0,0,.5); text-shadow: 0 2px 3px rgba(0,0,0,.65); min-height: 54px; }
        .game .game-btn:active:not(:disabled) { transform: scale(.97) rotate(-.5deg); }
        .game .game-btn:disabled { opacity: .45; }
        .game-wrap .game-btn.ghost { background: transparent; color: #e8c96a; border: 1.5px solid rgba(201,162,39,.55); box-shadow: none; text-shadow: none; font-size: 20px; }
        .gg-field span { color: #b39d6e; }
        .gg-field input { background: rgba(233,220,189,.07); border: 1.5px solid rgba(201,162,39,.5); color: #f2e7c9; border-radius: 14px 18px 14px 20px/20px 14px 18px 14px; font-family: 'IM Fell English', Georgia, serif; font-size: 18px; }
        .gg-field input::placeholder { color: #8d7a58; }
        .fm-day { font-family: Caveat, cursive; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
        .farm-scene { position: relative; border: 2px solid rgba(201,162,39,.5); border-radius: 18px 22px 16px 24px/24px 16px 22px 18px; box-shadow: 0 0 34px rgba(232,164,76,.12), inset 0 0 40px rgba(0,0,0,.4); }
        .farm-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: .1; }
        .farm-scene svg { filter: url(#inkRoughSoft); }
        .fm-lamp { animation: candle 3s ease-in-out infinite; }
        .fm-pest { background: radial-gradient(circle at 35% 35%, #3a2c1c, #14100a); }
        .arcade { background: radial-gradient(130% 70% at 50% 0%, #261b0f 0%, #171008 55%, #0d0805 100%); border: 2px solid rgba(201,162,39,.45); border-radius: 26px 30px 24px 32px/32px 24px 30px 26px; }
        .arcade::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 30% at 50% 0%, rgba(232,164,76,.15), transparent 70%); }
        .arcade::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: .08; }
        .arcade h3 { font-family: 'IM Fell English', Georgia, serif; color: #f2e7c9; text-shadow: 0 0 26px rgba(232,164,76,.5); }
        .arcade-sub { font-family: 'IM Fell English', Georgia, serif; font-style: italic; color: #cbb182; }
        .agame { background: linear-gradient(165deg, #2e2314, #1a120a); border: 1.5px solid rgba(201,162,39,.35); border-radius: 20px 24px 18px 26px/26px 18px 24px 20px; }
        .agame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
        .agame.g1::before { background: radial-gradient(45% 30% at 82% 0%, rgba(238,244,232,.1), transparent 70%); }
        .agame.g2::before { background: radial-gradient(55% 35% at 50% 0%, rgba(232,164,76,.17), transparent 70%); animation: candle 3.4s ease-in-out infinite; }
        .agame.g3::before { background: radial-gradient(50% 32% at 50% 0%, rgba(150,130,200,.13), transparent 70%); }
        .agame.g4::before { background: radial-gradient(50% 32% at 50% 0%, rgba(200,140,220,.1), transparent 70%); }
        .agame.g5::before { background: radial-gradient(45% 30% at 18% 0%, rgba(220,235,220,.1), transparent 70%); }
        .agame.g7::before { background: radial-gradient(55% 35% at 50% 0%, rgba(140,220,230,.1), transparent 70%); }
        .agame.g8::before { background: radial-gradient(55% 35% at 50% 0%, rgba(232,164,76,.16), transparent 70%); animation: candle 2.8s ease-in-out infinite; }
        .agame.g9::before { background: radial-gradient(45% 30% at 80% 8%, rgba(220,235,220,.1), transparent 70%); }
        .agame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); opacity: .07; }
        @keyframes candle { 0%, 100% { opacity: .85; } 30% { opacity: 1; } 55% { opacity: .7; } 80% { opacity: .95; } }
        .agame h4 { font-family: 'IM Fell English', Georgia, serif; font-size: 25px; color: #f2e7c9; text-shadow: 0 0 14px rgba(232,164,76,.3); }
        .ag-world { font-family: Caveat, cursive; font-size: 20px; font-weight: 600; color: #d8b46a; margin: 0 0 6px; letter-spacing: .04em; position: relative; }
        .ag-how { font-family: 'IM Fell English', Georgia, serif; font-style: italic; color: #ecdcb9; font-size: 16px; }
        .ag-verdict { display: block; font-family: Caveat, cursive; font-size: 20px; font-weight: 700; color: #e8c96a; margin-top: 2px; }
        .ag-moon { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; pointer-events: none; }
        .ag-area { background: radial-gradient(100% 110% at 50% 0%, #1e160c 0%, #100b06 100%); border: 1.5px solid rgba(201,162,39,.3); border-radius: 14px 18px 12px 20px/20px 12px 18px 14px; filter: url(#inkRough); user-select: none; -webkit-user-select: none; }
        .ag-area.ag-match { height: auto; min-height: 220px; }
        .ag-area.press { height: auto; min-height: 268px; }
        .ag-area.ag-trim { height: auto; }
        .ag-trim .ag-buds { height: auto; grid-template-rows: none; }
        .ag-trim .ag-bud { aspect-ratio: 1; }
        .ag-tiles { grid-template-rows: repeat(3, 1fr); }
        .ag-cards { grid-template-rows: repeat(2, 1fr); }
        .arcade .game-btn { min-width: 88px; min-height: 70px; border-radius: 48% 52% 51% 49%/53% 47% 52% 48%; padding: 10px 22px; }
        .ag-foot .game-btn { min-height: 52px; }
        #ap8Press { min-height: 60px; font-size: 24px; letter-spacing: .1em; }
        .ag-label { position: absolute; top: 54px; right: 10px; z-index: 0; pointer-events: none; font-family: Caveat, cursive; font-size: 19px; font-weight: 700; color: #3a2a18; background: linear-gradient(160deg, #e9dcbd, #d9c69a); padding: 5px 12px; border-radius: 4px 10px 4px 12px/12px 4px 10px 4px; box-shadow: 0 3px 8px rgba(0,0,0,.45); transform: rotate(6deg); border: 1px solid #b09a6a; }
        @media (max-width: 640px) { .ag-area.ag-match { gap: 5px; padding: 8px; } .agame h4 { font-size: 23px; } }
        /* ===== fit, glitch + life pass (Sep 2026) ===== */
        .game [hidden] { display: none !important; }
        .sound-toggle, .light-toggle { display: none; }
        .agame, .game-wrap { min-width: 0; }
        .ag-foot { flex-wrap: wrap; row-gap: 8px; }
        .ag-area { max-width: 100%; }
        /* ambient drifting motes in every play area */
        .ag-area::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
          background-image: radial-gradient(circle, rgba(255,233,168,.85) 1.2px, transparent 2px),
            radial-gradient(circle, rgba(255,233,168,.6) 1px, transparent 1.8px),
            radial-gradient(circle, rgba(190,215,255,.55) 1px, transparent 1.8px);
          background-size: 110px 80px, 150px 110px, 80px 100px;
          background-repeat: repeat;
          animation: mote-drift 11s ease-in-out infinite alternate; opacity: .4; }
        @keyframes mote-drift { from { background-position: 8px 30px, 70px 12px, 20px 60px; } to { background-position: 40px 2px, 30px 52px, 56px 24px; } }
        .farm-scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
          background-image: radial-gradient(circle, rgba(255,233,168,.8) 1.3px, transparent 2.1px),
            radial-gradient(circle, rgba(255,233,168,.5) 1px, transparent 1.8px);
          background-size: 120px 90px, 80px 110px; background-repeat: repeat;
          animation: mote-drift 13s ease-in-out infinite alternate-reverse; opacity: .35; }
        /* the plant sways gently */
        #fmSprout, #fmVeg, #fmFlower { transform-box: fill-box; transform-origin: 50% 100%; animation: plant-sway 5.5s ease-in-out infinite; }
        @keyframes plant-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
        /* deeper, less flat pieces */
        .ag-bud { box-shadow: inset 0 4px 10px rgba(0,0,0,.5), inset 0 -3px 8px rgba(0,0,0,.35); }
        .ag-tile { box-shadow: inset 0 3px 8px rgba(0,0,0,.55); }
        .ag-card { box-shadow: inset 0 2px 6px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4); }
        .ag-piece { background: linear-gradient(160deg, rgba(244,240,232,.07), rgba(20,16,10,.35)); box-shadow: inset 0 2px 5px rgba(0,0,0,.5), inset 0 -1px 3px rgba(255,240,210,.06); }
        .ag-jar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12%; width: 10%; pointer-events: none; z-index: 5;
          background: linear-gradient(180deg, rgba(255,250,235,.14), rgba(255,250,235,.03)); border-radius: 40%; }
        .ag-sprout { filter: drop-shadow(0 0 9px rgba(190,210,180,.3)) drop-shadow(0 4px 5px rgba(0,0,0,.5)); }
        /* the bat: behind the games, never steals taps on this page */
        .critters { z-index: 1; }
        #bat { pointer-events: none !important; cursor: default; }
        .arcade, .game-wrap { position: relative; z-index: 2; }
        /* life: mites skitter, buds breathe, steam rises off the press */
        .ag-mite { animation: mite-wiggle 1.1s ease-in-out infinite; }
        @keyframes mite-wiggle { 0%, 100% { margin-left: 0; margin-top: 0; } 25% { margin-left: 2px; margin-top: -1px; } 75% { margin-left: -2px; margin-top: 1px; } }
        .ag-bud { animation: bud-sway 3.4s ease-in-out infinite; }
        .ag-bud:nth-child(3n) { animation-delay: -1.1s; } .ag-bud:nth-child(3n+1) { animation-delay: -2.2s; }
        @keyframes bud-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
        .ag-puff { position: absolute; left: 50%; top: 34%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
          background: radial-gradient(circle, rgba(244,236,216,.85), rgba(244,236,216,0) 70%);
          animation: puff-rise .9s ease-out forwards; pointer-events: none; z-index: 7; }
        @keyframes puff-rise { 0% { transform: translate(0,0) scale(.7); opacity: .9; } 100% { transform: translate(-16px,-52px) scale(3.4); opacity: 0; } }
        /* ===== The Greenhouse (flagship living game) ===== */
        .agame.gh::before { background: radial-gradient(55% 35% at 50% 0%, rgba(255,217,138,.16), transparent 70%); }
        .gh-room { height: auto; }
        .gh-room svg { width: 100%; height: auto; display: block; }
        .gh-pot { cursor: pointer; touch-action: manipulation; }
        .gh-tapzone { fill: #ffffff; opacity: 0; pointer-events: all; cursor: pointer; touch-action: manipulation; }
        .gh-pot .gh-ring { transition: opacity .25s ease; }
        .gh-pot.sel .gh-ring { opacity: 1; }
        .gh-plant.gh-droop { filter: saturate(.45) brightness(.88); transform: rotate(5deg); transform-box: fill-box; transform-origin: 50% 100%; }
        .gh-float { animation: gh-float 5s ease-in-out infinite; }
        .gh-float.f2 { animation-delay: -1.6s; } .gh-float.f3 { animation-delay: -3.2s; }
        @keyframes gh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
        .gh-selname { text-align: center; font-family: 'IM Fell English', Georgia, serif; font-size: 19px; color: #f2e7c9; margin: 14px 0 10px; }
        .gh-bars { display: grid; gap: 9px; margin-bottom: 8px; }
        .gh-bar { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; min-width: 0; }
        .gh-bar > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b39d6e; white-space: nowrap; }
        .gh-track { height: 13px; border-radius: 99px; background: rgba(233,220,189,.13); overflow: hidden; box-shadow: inset 0 2px 5px rgba(0,0,0,.45); min-width: 0; }
        .gh-track i { display: block; height: 100%; width: 100%; border-radius: 99px; transition: width .6s ease; }
        .gh-track i.b-water { background: #5e8fb8; } .gh-track i.b-food { background: #7a9a4e; }
        .gh-track i.b-light { background: #d8a83e; } .gh-track i.b-growth { background: #8a6a9a; }
        .gh-track i.low { background: #a33b2e; }
        .gh-hint { text-align: center; color: #d8c49a; font-size: 15px; font-style: italic; font-family: 'IM Fell English', Georgia, serif; min-height: 24px; margin: 6px 0 12px; }
        .gh-actions { display: flex; gap: 8px; }
        .gh-actions .game-btn { flex: 1 1 0; min-width: 0; min-height: 56px; font-size: 18px; padding: 12px 6px; }
        .gh-harvest { width: 100%; margin-top: 10px; min-height: 56px; }
        .gh-foot { margin-top: 12px; text-align: center; }
        .gh-sparkle { animation: gh-fall .85s ease-in forwards; }
        @keyframes gh-fall { to { transform: translateY(60px); opacity: 0; } }
        .gh-burst { transform-box: fill-box; transform-origin: center; animation: gh-burst .8s ease-out forwards; }
        @keyframes gh-burst { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
        @media (prefers-reduced-motion: reduce) {
          .gh-float, .gh-sparkle, .gh-burst { animation: none; }
          .gh-plant.gh-droop { transform: none; }
          .gh-track i { transition: none; }
        }
        /* ===== The Greenhouse: witch gardener, day and night, harvest joy ===== */
        .gh-room { position: relative; }
        #ghWitch { transition: transform 1.05s ease-in-out; pointer-events: none; }
        .gh-witch-bob { animation: gh-idle 3.2s ease-in-out infinite; }
        @keyframes gh-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
        #ghWitch.gh-walking .gh-witch-bob { animation: gh-step .34s ease-in-out infinite; }
        @keyframes gh-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4.5px); } }
        #ghWitch.gh-hop .gh-witch-bob { animation: gh-hop .55s ease-out; }
        @keyframes gh-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-17px); } 100% { transform: translateY(0); } }
        .gh-arm { transition: transform .32s ease; transform-box: fill-box; transform-origin: 8% 18%; }
        #ghWitch.gh-castlight .gh-arm { transform: rotate(-58deg); }
        #ghWitch.gh-sprinkle .gh-arm { transform: rotate(26deg); }
        .gh-can { transition: opacity .3s ease, transform .3s ease; transform-box: fill-box; transform-origin: 85% 10%; opacity: 0; }
        #ghWitch.gh-pour .gh-can { opacity: 1; transform: rotate(-16deg); }
        .gh-banner { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none;
          background: rgba(22, 15, 8, .9); border: 1px solid rgba(201, 162, 39, .8); color: #ffe9a8;
          font-family: 'IM Fell English', Georgia, serif; font-size: 18px; padding: 10px 18px; border-radius: 14px;
          white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
          animation: gh-bannerfade 2.3s ease forwards; }
        @keyframes gh-bannerfade { 0% { opacity: 0; transform: translate(-50%, -38%); } 14% { opacity: 1; transform: translate(-50%, -50%); } 74% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%); } }
        .gh-daynight { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: #d8c49a;
          font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 14.5px; vertical-align: middle; }
        .gh-daynight svg { display: block; }
        .gh-flame { transition: opacity .8s ease; }
        @media (prefers-reduced-motion: reduce) {
          .gh-witch-bob, #ghWitch.gh-walking .gh-witch-bob, #ghWitch.gh-hop .gh-witch-bob, .gh-banner { animation: none; }
          #ghWitch { transition: none; }
        }


/* ===== Top & Train: daylight training studio ===== */
.agame.tt { background: linear-gradient(168deg, #f8f0dc 0%, #f1e3c4 60%, #e9d5ae 100%); border: 1.5px solid rgba(122, 90, 40, .45); box-shadow: 0 12px 30px rgba(90, 64, 28, .22), inset 0 1px 0 rgba(255, 252, 240, .7); }
.agame.tt::before { background: radial-gradient(55% 35% at 50% 0%, rgba(255, 236, 180, .5), transparent 70%); }
.agame.tt h4 { color: #4a3418; text-shadow: none; }
.agame.tt .ag-world { color: #93703a; }
.agame.tt .ag-how { color: #6a5232; }
.agame.tt .ag-score, .agame.tt .ag-time { color: #6a5232; text-shadow: none; }
.agame.tt .ag-verdict { color: #8a5f22; }
.tt-studio { height: auto; }
.tt-studio svg { width: 100%; height: auto; display: block; }
.tt-tap { fill: none; stroke: #ffffff; stroke-width: 44; opacity: 0; pointer-events: stroke; cursor: pointer; touch-action: manipulation; }
.tt-tapdot { fill: #ffffff; opacity: 0; pointer-events: all; cursor: pointer; touch-action: manipulation; }
.tt-tap:focus, .tt-tapdot:focus { outline: none; }
.tt-tapdot:focus { opacity: .28; }
.tt-tutring { fill: rgba(255, 217, 122, .2); stroke: #c9a227; stroke-width: 3; stroke-dasharray: 6 5; pointer-events: none; animation: tt-tutpulse 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tt-tutpulse { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.4); opacity: .55; } }
.tt-phase { text-align: center; font-family: 'IM Fell English', Georgia, serif; font-size: 19px; color: #4a3418; margin: 12px 0 8px; }
.tt-meters { display: grid; gap: 8px; margin-bottom: 10px; }
.tt-meter { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; min-width: 0; }
.tt-meter > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8a6f45; white-space: nowrap; }
.tt-track { height: 13px; border-radius: 99px; background: rgba(106, 82, 50, .16); overflow: hidden; box-shadow: inset 0 2px 5px rgba(90, 64, 28, .25); min-width: 0; }
.tt-track i { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #7fa055, #a8c46a); transition: width .6s ease; }
.tt-track i.low { background: #b0563a; }
.tt-lit { text-align: center; font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 15px; color: #6a5232; margin: 2px 0 8px; min-height: 22px; }
.tt-meter-note { text-align: center; font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 13.5px; color: #8a6f45; margin: 0 0 6px; }
.tt-belt { display: flex; gap: 10px; margin: 2px 0 4px; }
.tt-tool { flex: 1 1 0; min-width: 0; min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: Caveat, cursive; font-size: 21px; font-weight: 700; color: #4a3418; background: #fffaf0; border: 2.5px solid rgba(122, 90, 40, .35); border-radius: 16px 20px 15px 22px/22px 15px 20px 16px; cursor: pointer; touch-action: manipulation; box-shadow: 0 3px 10px rgba(90, 64, 28, .15); }
.tt-tool svg { flex: 0 0 auto; }
.tt-tool .tt-count { font-size: 17px; color: #8a6f45; }
.tt-tool[aria-pressed="true"] { border-color: #8a5f22; background: #ffefd0; box-shadow: 0 0 0 3px rgba(201, 162, 39, .35), 0 3px 10px rgba(90, 64, 28, .2); }
.tt-tool:disabled { opacity: .45; cursor: default; }
.tt-tool:active:not(:disabled) { transform: scale(.97); }
.tt-credit { text-align: center; font-size: 12.5px; font-style: italic; color: #97805a; margin: 2px 0 8px; font-family: 'IM Fell English', Georgia, serif; }
.tt-hint { text-align: center; color: #6a5232; font-size: 15px; font-style: italic; font-family: 'IM Fell English', Georgia, serif; min-height: 24px; margin: 4px 0 10px; }
.tt-banner { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; background: rgba(251, 244, 226, .96); border: 1.5px solid rgba(122, 90, 40, .7); color: #4a3418; font-family: 'IM Fell English', Georgia, serif; font-size: 18px; font-style: italic; padding: 10px 18px; border-radius: 14px 18px 14px 20px/20px 14px 18px 14px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px rgba(90, 64, 28, .25); animation: tt-bannerfade 2.4s ease forwards; }
@keyframes tt-bannerfade { 0% { opacity: 0; transform: translate(-50%, -40%); } 14% { opacity: 1; transform: translate(-50%, -50%); } 74% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.tt-results { position: absolute; inset: 14px; z-index: 7; display: flex; align-items: center; justify-content: center; }
.tt-results-card { background: #fbf4e2; border: 2px solid rgba(122, 90, 40, .7); border-radius: 18px 22px 18px 24px/24px 18px 22px 18px; padding: 22px 26px; text-align: center; max-width: 88%; box-shadow: 0 10px 30px rgba(90, 64, 28, .3); }
.tt-results-card h5 { font-family: 'IM Fell English', Georgia, serif; font-size: 26px; color: #4a3418; margin: 0 0 6px; }
.tt-results-card p { font-family: 'IM Fell English', Georgia, serif; font-style: italic; color: #6a5232; font-size: 16px; margin: 0 0 4px; }
.tt-results-card .tt-big { font-family: Caveat, cursive; font-size: 30px; font-weight: 700; color: #8a5f22; margin: 6px 0; }
.tt-results-card .game-btn { margin-top: 10px; min-height: 54px; }
.tt-tip { position: absolute; inset: 14px; z-index: 8; display: flex; align-items: center; justify-content: center; }
.tt-tip-card { background: #fbf4e2; border: 2px solid rgba(122, 90, 40, .7); border-radius: 18px 22px 18px 24px/24px 18px 22px 18px; padding: 20px 22px; text-align: center; max-width: 90%; max-height: 94%; overflow: auto; box-shadow: 0 10px 30px rgba(90, 64, 28, .3); }
.tt-tip-card h5 { font-family: 'IM Fell English', Georgia, serif; font-size: 23px; color: #4a3418; margin: 0 0 8px; }
.tt-tip-card p { font-family: 'IM Fell English', Georgia, serif; font-size: 15.5px; line-height: 1.55; color: #5a452e; margin: 0 0 8px; }
.tt-tip-card p strong { color: #4a3418; }
.tt-tip-card .game-btn { margin-top: 8px; min-height: 52px; }
.tt-takeaway { font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 15px; color: #6a5232; margin: 8px 0 2px; line-height: 1.5; }
.tt-notes { display: block; margin: 0 auto 8px; background: none; border: none; cursor: pointer; touch-action: manipulation; font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 14.5px; color: #8a6f45; text-decoration: underline; text-underline-offset: 3px; padding: 6px 12px; }
#ttGardener { transition: transform 1s ease-in-out; }
.tt-g-bob { animation: tt-idle 3s ease-in-out infinite; }
@keyframes tt-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
#ttGardener.tt-walking .tt-g-bob { animation: tt-step .36s ease-in-out infinite; }
@keyframes tt-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tt-g-arm { transition: transform .3s ease; transform-box: fill-box; transform-origin: 20% 12%; }
#ttGardener.tt-work .tt-g-arm { transform: rotate(-72deg); }
.tt-plantsway { animation: tt-sway 5.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes tt-sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }
.tt-clip-pop { transform-box: fill-box; transform-origin: center; animation: tt-pop .45s ease-out; }
@keyframes tt-pop { 0% { transform: scale(.3); } 60% { transform: scale(1.28); } 100% { transform: scale(1); } }
.tt-cone { animation: tt-breathe 4.5s ease-in-out infinite; }
@keyframes tt-breathe { 0%, 100% { opacity: .13; } 50% { opacity: .19; } }
.tt-spark { animation: tt-spark .6s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes tt-spark { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.tt-drop { animation: tt-drop .9s ease-in forwards; }
@keyframes tt-drop { to { transform: translateY(46px) rotate(40deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tt-g-bob, #ttGardener.tt-walking .tt-g-bob, .tt-plantsway, .tt-cone, .tt-clip-pop, .tt-banner, .tt-spark, .tt-drop, .tt-tutring { animation: none; }
  #ttGardener { transition: none; }
  .tt-g-arm { transition: none; }
  .tt-track i { transition: none; }
}



/* ===== Batch 2: Potion Pairs + Bong Match ===== */
/* --- Potion Pairs (ap4): the apothecary shelf --- */
.pp .ag-area { height: auto; min-height: 330px;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(255,196,110,.13), transparent 70%),
    linear-gradient(180deg, transparent 84%, rgba(0,0,0,.5) 84.5%, rgba(0,0,0,.5) 90%, transparent 90.5%),
    repeating-linear-gradient(180deg, #54391f 0 42px, #483017 42px 45px);
  border: 1.5px solid rgba(201,162,39,.38);
}
.pp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 14px; box-sizing: border-box; }
.pp-card { background: none; border: none; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation;
  perspective: 500px; aspect-ratio: 3/4; min-height: 0; -webkit-tap-highlight-color: transparent; }
.pp-inner { position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .5s ease; }
.pp-card.open .pp-inner, .pp-card.won .pp-inner { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); }
.pp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px; box-sizing: border-box; }
.pp-back { background: linear-gradient(160deg, #2a1e11, #150e07); border: 1px solid rgba(201,162,39,.55);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.6); }
.pp-front { background: linear-gradient(160deg, #f3e9d1, #dfcfa9); border: 1px solid #e8c96a;
  transform: rotateY(180deg); -webkit-transform: rotateY(180deg);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.pp-face svg { width: 80%; height: auto; display: block; }
.pp-card.won .pp-front { border-color: #f4e9c8; box-shadow: 0 0 22px rgba(232,201,106,.8), inset 0 2px 6px rgba(0,0,0,.2); }
.pp-card.won { animation: pp-glow .6s ease; }
@keyframes pp-glow { 0% { transform: scale(1); } 40% { transform: scale(1.09); } 100% { transform: scale(1); } }
.terp-name { font-family: Caveat, cursive; font-size: 15px; font-weight: 700; color: #3a2c14; line-height: 1.1; text-align: center; }
/* --- Bong Match (ap7): the glass table --- */
.ba .ag-area { height: auto;
  background:
    radial-gradient(60% 42% at 50% 0%, rgba(255,190,90,.15), transparent 70%),
    linear-gradient(180deg, #2c1e12 0%, #180f08 100%);
  border: 1.5px solid rgba(201,162,39,.38);
}
.ag-area.ba-match { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 10px;
  box-sizing: border-box; height: auto; min-height: 290px; }
.ba-piece { background: linear-gradient(160deg, rgba(244,240,232,.08), rgba(20,16,10,.42));
  border: 1px solid rgba(201,162,39,.24); border-radius: 10px; padding: 3px; cursor: pointer;
  touch-action: manipulation; line-height: 1; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.ba-piece svg { width: 100%; height: auto; display: block; }
.ba-piece.sel { outline: 2px solid #e8c96a; box-shadow: 0 0 14px rgba(232,201,106,.65), inset 0 2px 5px rgba(0,0,0,.5); }
.ba-fall { animation: ba-drop .38s ease backwards; }
@keyframes ba-drop { 0% { transform: translateY(-12px) scale(.92); opacity: 0; }
  60% { transform: translateY(2px) scale(1.02); opacity: 1; } 100% { transform: none; opacity: 1; } }
.ba-combo { position: absolute; left: 50%; top: 38%; transform: translateX(-50%);
  font-family: Caveat, cursive; font-size: 26px; font-weight: 700; color: #ffe9a8; white-space: nowrap;
  text-shadow: 0 0 14px rgba(232,201,106,.85); pointer-events: none; animation: ba-rise .9s ease-out forwards; }
.ba-level { display: inline-block; font-family: Caveat, cursive; font-size: 22px; font-weight: 700; color: #e8c96a;
  background: rgba(232,201,106,.12); border: 1px solid rgba(232,201,106,.4); border-radius: 999px; padding: 2px 14px; margin: 0 6px 8px 0; }
.ba-target { display: block; font-size: 13px; color: #f4f0e8; opacity: .75; margin-bottom: 6px; }
.ba-board { list-style: none; margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(201,162,39,.3);
  border-radius: 14px; background: rgba(20,14,8,.55); }
.ba-board h5 { margin: 0 0 8px; font-family: Caveat, cursive; font-size: 21px; color: #e8c96a; text-align: center; }
.ba-board li { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; border-bottom: 1px solid rgba(201,162,39,.14);
  font-size: 14px; color: #f4f0e8; }
.ba-board li:last-child { border-bottom: none; }
.ba-board .ba-rank { color: #e8c96a; font-weight: 700; min-width: 22px; }
.ba-board .ba-who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-board .ba-lvl { font-size: 12px; opacity: .65; }
.ba-board .ba-pts { font-weight: 700; }
.ba-name-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10,8,5,.72); padding: 20px; }
.ba-name-box { background: #1c2417; border: 1.5px solid rgba(201,162,39,.5); border-radius: 18px; padding: 26px 24px;
  max-width: 340px; width: 100%; text-align: center; color: #f4f0e8; }
.ba-name-box h4 { font: 400 24px Italiana, Georgia, serif; margin: 0 0 6px; }
.ba-name-box p { font-size: 14.5px; opacity: .85; margin: 0 0 14px; line-height: 1.55; }
.ba-name-box input { width: 100%; box-sizing: border-box; padding: 13px 15px; font-size: 16px; border-radius: 12px;
  border: 1.5px solid rgba(201,162,39,.4); background: #f4f0e8; color: #22382d; margin-bottom: 12px; }
@keyframes ba-rise { to { transform: translate(-50%, -34px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pp-inner { transition: none; }
  .pp-card.won, .ba-fall, .ba-combo { animation: none; }
}



              #terpMatchCard #tmArea { position: relative; min-height: 300px; overflow: visible; }
              #terpMatchCard .tm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
              #terpMatchCard .tm-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 30px; color: #f4f0e8; opacity: .7; font-size: 15px; line-height: 1.6; }
              #terpMatchCard .tm-empty[hidden] { display: none; }
              #terpMatchCard .tm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
              #terpMatchCard .tm-cols[hidden] { display: none; }
              #terpMatchCard .tm-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
              #terpMatchCard .tm-chead { margin: 0 0 2px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #c9a227; opacity: .85; }
              #terpMatchCard .tm-terp,
              #terpMatchCard .tm-fx { font: inherit; width: 100%; min-width: 0; min-height: 54px; padding: 9px 12px; border-radius: 12px; cursor: pointer; touch-action: manipulation; text-align: left; -webkit-tap-highlight-color: transparent; }
              #terpMatchCard .tm-terp { background: #173f32; border: 1px solid rgba(201,162,39,.5); color: #f4f0e8; }
              #terpMatchCard .tm-tname { display: block; color: #c9a227; font-weight: 700; font-size: 16px; line-height: 1.25; }
              #terpMatchCard .tm-aroma { display: block; font-size: 12px; font-style: italic; opacity: .72; line-height: 1.35; margin-top: 2px; }
              #terpMatchCard .tm-fx { background: #f4f0e8; border: 1px solid #d9cfb6; color: #22382d; font-weight: 600; font-size: 15px; display: flex; align-items: center; }
              #terpMatchCard .tm-terp.tm-sel { outline: 2px solid #c9a227; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(201,162,39,.22); }
              #terpMatchCard .tm-fx.tm-sel { outline: 2px solid #c9a227; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(201,162,39,.22); }
              #terpMatchCard .tm-locked { opacity: .55; cursor: default; }
              #terpMatchCard .tm-shake { animation: tmShake .4s ease; }
              @keyframes tmShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
              @media (prefers-reduced-motion: reduce) { #terpMatchCard .tm-shake { animation: none; } }
              #terpMatchCard .tm-verdict { display: block; margin-top: 4px; font-style: italic; opacity: .85; }
            

        .tarot { position: relative; padding: 84px 20px 90px; background: radial-gradient(1200px 600px at 50% -80px, #16382b 0%, #0b1f16 45%, #07120d 100%); overflow: hidden; color: #efe7d2; }
        .tarot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
          background-image: radial-gradient(1.5px 1.5px at 12% 22%, #e8d9a8 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 44% 18%, #e8d9a8 50%, transparent 51%), radial-gradient(1px 1px at 61% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 76% 12%, #e8d9a8 50%, transparent 51%), radial-gradient(1px 1px at 88% 28%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 6% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 58%, #e8d9a8 50%, transparent 51%), radial-gradient(2px 2px at 20% 78%, #e8d9a8 50%, transparent 51%), radial-gradient(1px 1px at 55% 88%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 82% 82%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 42%, #e8d9a8 50%, transparent 51%); }
        .tarot-inner { position: relative; max-width: 980px; margin: 0 auto; }
        .tarot-hero { text-align: center; margin-bottom: 40px; }
        .tarot-hero .eyebrow { color: #c9a227; }
        .tarot-hero h1 { font: 400 46px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 14px; letter-spacing: .01em; }
        .tarot-hero p.sub { color: #cdbf9e; font-size: 17px; font-style: italic; max-width: 560px; margin: 0 auto; line-height: 1.65; }
        .taper { width: 10px; height: 44px; margin: 0 auto 18px; background: linear-gradient(180deg, #f3ecd9, #d9cba6); border-radius: 3px 3px 5px 5px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
        .taper .flame { position: absolute; left: 50%; top: -20px; width: 12px; height: 20px; margin-left: -6px; background: radial-gradient(ellipse at 50% 70%, #ffe9a8 0%, #f5b942 55%, rgba(245,120,40,0) 75%); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 100%; animation: flick 2.6s ease-in-out infinite; filter: blur(.4px); }
        .taper::after { content: ""; position: absolute; left: 50%; top: -34px; width: 90px; height: 90px; margin-left: -45px; background: radial-gradient(circle, rgba(245,185,66,.22) 0%, rgba(245,185,66,0) 65%); animation: glowpulse 2.6s ease-in-out infinite; pointer-events: none; }
        @keyframes flick { 0%,100% { transform: scale(1) rotate(-2deg); opacity: 1; } 25% { transform: scale(1.06,.94) rotate(2deg); opacity: .92; } 50% { transform: scale(.94,1.08) rotate(-3deg); opacity: 1; } 75% { transform: scale(1.03,.97) rotate(1.5deg); opacity: .95; } }
        @keyframes glowpulse { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
        .draw-wrap { text-align: center; margin-bottom: 64px; }
        .draw-stage { perspective: 1200px; display: inline-block; margin-bottom: 22px; }
        .draw-card { width: 210px; aspect-ratio: 5/8.6; position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.7,.3,1.2); cursor: pointer; }
        .draw-card.flipped { transform: rotateY(180deg); }
        .draw-card.dealing { animation: deal .55s ease; }
        @keyframes deal { 0% { transform: translateY(-26px) rotate(-4deg); opacity: .4; } 100% { transform: translateY(0) rotate(0); opacity: 1; } }
        .tcard { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.5); }
        .tcard.pback { background: radial-gradient(200px 200px at 70% 12%, rgba(232,217,168,.10), transparent 60%), radial-gradient(300px 300px at 50% 110%, rgba(22,56,43,.9), transparent 70%), linear-gradient(160deg, #123324, #08170f); border: 1px solid rgba(201,162,39,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
        .tcard.pback::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
          background-image: radial-gradient(1px 1px at 18% 30%, #e8d9a8 50%, transparent 51%), radial-gradient(1px 1px at 82% 24%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 62%, #e8d9a8 50%, transparent 51%), radial-gradient(1px 1px at 30% 72%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 45%, #e8d9a8 50%, transparent 51%); }
        .tcard.pback::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,162,39,.35); border-radius: 10px; pointer-events: none; }
        .pback-moon { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; opacity: .9; }
        .tcard.pfront { transform: rotateY(180deg); border: 1px solid rgba(201,162,39,.6); display: flex; flex-direction: column; align-items: center; padding: 16px 12px 12px; text-align: center; }
        .tcard.pfront::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,162,39,.3); border-radius: 10px; pointer-events: none; }
        .seal { border-radius: 50%; background: #f3ecd9; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 2px #c9a227, 0 0 0 5px rgba(201,162,39,.25), 0 6px 16px rgba(0,0,0,.4); flex: none; position: relative; }
        .seal img { width: 88%; height: 88%; object-fit: contain; display: block; }
        .seal.lg { width: 118px; height: 118px; }
        .seal.sm { width: 46px; height: 46px; }
        .pback-label { font: 400 11px Italiana, Georgia, serif; letter-spacing: .34em; text-indent: .34em; color: #c9a227; position: relative; }
        .tcard .t-ordinal { font: 400 15px Italiana, Georgia, serif; color: #c9a227; letter-spacing: .3em; margin: 2px 0 6px; text-indent: .3em; }
        .tcard .t-motif { width: 104px; height: 104px; margin: 2px 0 8px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
        .tcard .t-motif svg { width: 100%; height: 100%; }
        .tcard .t-name { font: 400 21px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 6px; letter-spacing: .04em; }
        .tcard .t-aroma { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #c9a227; margin: 0 0 4px; }
        .tcard .t-vibe { font-size: 12.5px; font-style: italic; color: #d8cba6; margin: 0 0 10px; line-height: 1.5; padding: 0 6px; }
        .tcard .t-sealrow { margin-top: auto; padding-bottom: 4px; }
        .draw-btn { display: inline-block; font: 600 14px Jost, Avenir, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #0b1f16; background: linear-gradient(180deg, #e3c766, #c9a227); border: none; border-radius: 999px; padding: 15px 38px; cursor: pointer; box-shadow: 0 8px 24px rgba(201,162,39,.35); transition: transform .15s ease, box-shadow .2s ease; }
        .draw-btn:hover { box-shadow: 0 10px 30px rgba(201,162,39,.5); }
        .draw-btn:active { transform: scale(.97); }
        .draw-hint { color: #9d9070; font-size: 13.5px; font-style: italic; margin: 14px 0 0; }
        .draw-oracle { max-width: 420px; margin: 20px auto 0; min-height: 60px; }
        .draw-oracle p { font: 400 22px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 6px; }
        .draw-oracle p.draw-fortune { font-family: Caveat, cursive; font-size: 26px; color: #c9a227; margin: 10px 0 8px; }
        .draw-oracle span { color: #cdbf9e; font-size: 14px; font-style: italic; }
        .pick-head { text-align: center; margin-bottom: 28px; }
        .pick-head h2 { font: 400 32px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 10px; }
        .pick-head p { color: #cdbf9e; font-size: 15px; font-style: italic; margin: 0; }
        .tarot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
        .pick-card { cursor: pointer; perspective: 1000px; transition: transform .25s ease; }
        .pick-card:hover { transform: translateY(-8px); }
        .pick-card:active { transform: translateY(-4px) scale(.98); }
        .pick-card.shuffling .pick-inner { animation: shufflewig .5s ease; }
        @keyframes shufflewig { 0% { transform: rotate(0); } 25% { transform: rotate(-3deg) translateY(-6px); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-2deg) translateY(-3px); } 100% { transform: rotate(0); } }
        .pick-inner { position: relative; width: 100%; aspect-ratio: 5/7.4; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.7,.3,1.15); }
        .pick-card.picked .pick-inner { transform: rotateY(180deg); }
        .pick-inner .tcard { position: absolute; inset: 0; }
        .pick-card .t-motif { width: 84px; height: 84px; }
        .pick-card .t-name { font-size: 18px; }
        .pick-card .t-vibe { font-size: 11.5px; }
        .pick-card .seal.lg { width: 92px; height: 92px; }
        .pick-foot { text-align: center; margin-bottom: 56px; }
        .pick-oracle { max-width: 440px; margin: 0 auto 18px; min-height: 58px; }
        .pick-oracle p { font: 400 22px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 6px; }
        .pick-oracle span { color: #cdbf9e; font-size: 14px; font-style: italic; }
        .pick-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
        .ghost-btn { font: 600 13px Jost, Avenir, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #c9a227; background: none; border: 1px solid rgba(201,162,39,.5); border-radius: 999px; padding: 13px 30px; cursor: pointer; transition: background .2s ease, transform .15s ease; }
        .ghost-btn:hover { background: rgba(201,162,39,.1); }
        .ghost-btn:active { transform: scale(.97); }
        .tarot-note { text-align: center; max-width: 560px; margin: 0 auto; border-top: 1px solid rgba(201,162,39,.25); padding-top: 34px; }
        .tarot-note h3 { font: 400 26px Italiana, Georgia, serif; color: #f5edd8; margin: 0 0 10px; }
        .tarot-note p { color: #cdbf9e; font-size: 15px; font-style: italic; line-height: 1.7; margin: 0; }
        .tlight { position: fixed; inset: 0; z-index: 9999; background: rgba(4,10,7,.88); display: none; align-items: center; justify-content: center; padding: 24px; }
        .tlight.open { display: flex; }
        .tlight-box { max-width: 340px; width: 100%; text-align: center; }
        .tlight-box .tcard.pfront { transform: none; position: relative; width: 100%; aspect-ratio: 5/8.2; }
        .tlight-oracle { font: 400 24px Italiana, Georgia, serif; color: #f5edd8; margin: 20px 0 6px; }
        .tlight-detail { color: #cdbf9e; font-size: 14.5px; font-style: italic; line-height: 1.7; margin: 0 0 18px; }
        .tlight-close { font: 600 13px Jost, Avenir, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #c9a227; background: none; border: 1px solid rgba(201,162,39,.5); border-radius: 999px; padding: 12px 30px; cursor: pointer; }
        @media (max-width: 760px) { .tarot-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .tarot-hero h1 { font-size: 34px; } .pick-head h2 { font-size: 27px; } }
      

  #sitegate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: #f4f0e8; padding: 24px; }
  #sitegate.hidden { display: none; }
  .sitegate-inner { max-width: 380px; width: 100%; text-align: center; }
  .sitegate-mark { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; overflow: hidden; }
  .sitegate-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
  #sitegate h2 { font: 400 34px/1.15 Italiana, Georgia, serif; color: #173f32; margin: 0 0 10px; }
  #sitegate p { color: #3f4b40; font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
  .sitegate-bigbtn { display: block; width: 100%; padding: 15px; font-size: 16px; border: none; border-radius: 14px; background: #173f32; color: #f4f0e8; cursor: pointer; text-decoration: none; box-sizing: border-box; }
  .sitegate-have { margin-top: 18px !important; font-size: 14px !important; }
  .sitegate-have a { color: #173f32; font-weight: bold; }
  #sitegatePassWrap { margin-top: 6px; }
  #sitegatePass { width: 100%; padding: 14px 16px; font-size: 17px; text-align: center; border: 1.5px solid rgba(23,63,50,.3); border-radius: 14px; background: #fbf9f4; color: #173f32; margin-bottom: 6px; box-sizing: border-box; }
  .sitegate-err { color: #a33b2e !important; font-size: 14px !important; margin: 8px 0 !important; }
  #sitegateBtn { width: 100%; padding: 15px; font-size: 16px; border: none; border-radius: 14px; background: #173f32; color: #f4f0e8; cursor: pointer; margin-top: 10px; }
  .sitegate-open { margin-top: 10px !important; font-size: 13px !important; color: #6f6a58 !important; }
  .sitegate-open a { color: #173f32; }
  body.sitegate-locked { overflow: hidden; }
