/* Herbarium plate look: paper, ink lines, flat gouache fruit. */
:root{--ink:#2b2118;--paper:#f1e7cf;--card:#fbf5e4;--green:#3f6b3a;--gold:#d9a21b;--bark:#7a5636}
.game-title h1{font-size:1.5rem;letter-spacing:.02em;margin:.2rem 0 .6rem;font-weight:700}
.og{user-select:none;-webkit-user-select:none}
.og-hud{display:grid;grid-template-columns:96px 1fr;gap:8px;margin-bottom:8px}
.og-cell{background:var(--card);border:2px solid var(--ink);border-radius:8px;padding:6px 10px;display:flex;flex-direction:column;justify-content:center;min-height:56px}
.og-cell b{font-size:1.45rem;line-height:1.1}
.og-k{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#5a4a38}
.og-sm{font-size:.78rem;color:#5a4a38;margin-top:4px}
.og-bar{height:9px;border:1.5px solid var(--ink);border-radius:5px;background:rgba(43,33,24,.12);margin:4px 0 0;overflow:hidden}
.og-bar i{display:block;height:100%;width:100%;background:var(--green)}
.og-cell.low .og-bar i{background:#b4382c}
.og-cell.low #og-time{color:#b4382c;font-weight:700}
.og-stage{position:relative;border:2px solid var(--ink);border-radius:10px;overflow:hidden;background:var(--paper);line-height:0}
#og-cv{display:block;width:100%;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;outline:none;cursor:pointer}
#og-cv:focus-visible{box-shadow:inset 0 0 0 3px #c4501e}
.og-msg{min-height:2.6em;margin:8px 2px;font-size:.92rem;line-height:1.3}
.og-btn{font:inherit;font-weight:700;font-size:.9rem;min-height:44px;min-width:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:8px;background:var(--card);color:var(--ink);cursor:pointer;box-shadow:0 3px 0 var(--ink);touch-action:manipulation}
.og-btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.og-btn:focus-visible,.og-chip:focus-visible{outline:3px solid #c4501e;outline-offset:2px}
.og-btn.pri{background:var(--green);color:#f6efdc}
.og-btn[data-aff=no]{opacity:.55}
.og-btn[hidden]{display:none}
.og-shop{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.og-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.og-tools .og-btn{flex:1 1 auto}
.og-ov{position:absolute;inset:0;background:rgba(241,231,207,.95);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:14px;line-height:1.35;touch-action:pan-y}
.og-ov[hidden]{display:none}
.og-card{width:100%;max-width:340px;margin:auto 0;text-align:center;display:flex;flex-direction:column;gap:10px}
.og-card h2{font-size:1.5rem}
.og-card p{font-size:.95rem}
.og-row{display:flex;gap:8px}.og-row .og-btn{flex:1}
.og-stats{list-style:none;text-align:left;background:var(--card);border:2px solid var(--ink);border-radius:8px;padding:8px 12px;font-size:.92rem}
.og-stats li{padding:3px 0}
.og-grid{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:360px;overflow-y:auto;padding:2px;touch-action:pan-y}
.og-tile{background:var(--card);border:1.5px solid var(--ink);border-radius:8px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:.7rem}
.og-tile b{font-size:.78rem}.og-tile span{color:#5a4a38;font-size:.62rem}.og-tile i{font-style:normal;font-size:.62rem;color:#7a4f00}
.og-tile.un b{color:#7a6c58}.og-tile.heir{outline:3px solid var(--gold)}
.og-pie.dim{filter:grayscale(1);opacity:.45}
.og-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-height:190px;overflow-y:auto}
.og-chip{font:inherit;font-size:.78rem;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:4px 8px;border:2px solid var(--ink);border-radius:22px;background:var(--card);color:var(--ink);cursor:pointer}
.og-chip.on{background:var(--gold)}
.og-about{margin-top:18px;font-size:.92rem;line-height:1.5}
.og-about h2{font-size:1.1rem;margin-bottom:6px}.og-about p{margin-bottom:8px}
@media (max-width:360px){.og-hud{grid-template-columns:80px 1fr}.og-btn{font-size:.82rem;padding:6px 8px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.og-btn:active{transform:none}}
.og-daily{margin-top:0}
.og-card .og-btn[data-act=daily]{background:var(--gold)}
.og-stage{box-shadow:0 3px 0 var(--ink)}
@media (prefers-reduced-motion:no-preference){.og-card{animation:og-rise .25s ease-out}@keyframes og-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
/* Full screen on phones: board fills the stage, extras hidden. */
html.pip-immersive .og-about,html.pip-native .og-about,.game-wrap:fullscreen .og-about,html.pip-immersive .og-heir,html.pip-native .og-heir,html.pip-immersive #og-heir,html.pip-immersive #og-best,html.pip-native #og-heir,html.pip-native #og-best{display:none}
html.pip-immersive .game-wrap,html.pip-native .game-wrap{display:flex;flex-direction:column;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));overflow:hidden}
html.pip-immersive .og,html.pip-native .og{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
html.pip-immersive .og-stage,html.pip-native .og-stage{flex:1 1 0;min-height:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 40%,#f7efd8,#e6d9b8)}
html.pip-immersive .og-msg,html.pip-native .og-msg{min-height:0;margin:4px 2px;font-size:.85rem}
html.pip-immersive .og-shop,html.pip-native .og-shop{margin-bottom:6px}
html.pip-immersive .og-tools,html.pip-native .og-tools{margin-bottom:0;gap:6px}
html.pip-immersive .og-hud,html.pip-native .og-hud{margin-bottom:6px}
@media (orientation:landscape) and (max-height:520px){
html.pip-immersive .og,html.pip-native .og{display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:auto auto auto 1fr;gap:6px 10px}
html.pip-immersive .og>.og-stage,html.pip-native .og>.og-stage{grid-column:1;grid-row:1/-1}
html.pip-immersive .og>:not(.og-stage),html.pip-native .og>:not(.og-stage){grid-column:2}
html.pip-immersive .og-cell,html.pip-native .og-cell{min-height:44px;padding:3px 8px}
html.pip-immersive .og-tools,html.pip-native .og-tools{align-content:flex-start}
}
