/* A minha ganadaria: the game page. The stage fills the space under the site's bar; the interface is plain DOM over the canvas.
   Palette from the concept art: warm black panels, ivory cards, gold, a touch of red. Flat: no shadows, no gradients. */
body.gn-pg { margin: 0; background: #17120E; color: #F6F0E4; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
.gn-pg [hidden] { display: none !important; }
html.sh body.gn-pg { padding-left: 0; padding-bottom: 0 !important; }
html.sh .sh-baixo { display: none !important; }
@media (max-width: 760px) { html.sh .sh-burger { display: inline-grid !important; } }
.gn {
  --gn-ink: #17120E; --gn-panel: #211B15; --gn-panel2: #2C241B; --gn-card: #F6EFDF; --gn-card-ink: #2a2118; --gn-gold: #E8B93A; --gn-gold-d: #6F4C00; --gn-red: #B3201A; --gn-red-h: #C42B22; --gn-line: rgba(232,185,58,.38);
  --gn-ok: #7fc27a; --gn-mid: #E8B93A; --gn-low: #e0685b;
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--sh-topo, 56px); background: #8fc3e4; overflow: hidden; font-family: var(--f, Lora, Georgia, serif); color: #F6F0E4;
  height: calc(100dvh - var(--sh-topo, 56px)); user-select: none; -webkit-user-select: none; touch-action: none;
}
@media (min-width: 1081px) { html.sh .gn { left: var(--sh-lado); } html.sh.sh-c .gn { left: var(--sh-lado-c); } }
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) { html.sh header.bar { display: none !important; } html.sh .gn { top: 0; height: 100dvh; left: 0; } }
.gn-stage { position: absolute; inset: 0; }
.gn-stage canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }

/* loading and "soon" */
.gn-load, .gn-soon { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: #17120E; transition: opacity .45s ease; padding: 16px; }
.gn-load.gn-out { opacity: 0; pointer-events: none; }
.gn-load-card { width: min(420px, 100%); text-align: center; display: grid; gap: 14px; }
.gn-load-card h1 { font-size: 34px; margin: 0; color: var(--gn-gold); }
.gn-load-card p { margin: 0; font-size: 19px; color: #F6F0E4; }
.gn-load-t { font-size: 20px; }
.gn-load { place-items: end center; overflow: hidden; }
.gn-load-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.gn-load-card { position: relative; width: min(440px, 100%); background: #17120E; border-radius: 16px; padding: 18px 18px 16px; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
.gn-load-card h1.gn-load-h { font-size: 30px; line-height: 1.1; }
.gn-load-card .gn-bar { height: 10px; }
.gn-load-card p.gn-load-t { font-size: 18px; color: #BDB3A2; }
.gn-load-card p.gn-load-tip { font-size: 18px; color: #F6F0E4; min-height: 3.2em; }
.gn-bar { height: 8px; border-radius: 8px; background: #3a2f22; overflow: hidden; }
.gn-bar i { display: block; height: 100%; width: 0; background: var(--gn-gold); transition: width .3s ease; }

/* the interface */
.gn-ui { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.gn-ui > * , .gn-ui button, .gn-ui input, .gn-ui a { pointer-events: auto; }
.gn-hud { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.gn-hud > * { pointer-events: none; }
.gn-hud .gn-chip, .gn-hud button { pointer-events: auto; }
.gn-hud-r { display: flex; gap: 6px; }
.gn-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(23,18,14,.86); border: 1.5px solid var(--gn-line); color: #F6F0E4; font: 600 16px/1 var(--f, serif); white-space: nowrap; }
.gn-chip b { font-weight: 700; }
.gn-chip .gn-i { color: var(--gn-gold); }
.gn-chip-b { cursor: pointer; font-family: inherit; }
.gn-sq { padding: 0; width: 40px; justify-content: center; }
.gn-prog { width: 26px; height: 5px; border-radius: 5px; background: rgba(232,185,58,.25); overflow: hidden; display: inline-block; }
.gn-prog i { display: block; height: 100%; background: var(--gn-gold); }
.gn-i { flex: none; }
.gn-date { font-weight: 500; } .gn-date b { font-weight: 700; text-transform: capitalize; }

.gn-day { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.gn-day .gn-btn { pointer-events: auto; }
.gn-dock { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 8px max(10px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(23,18,14,.92); border-top: 1.5px solid var(--gn-line); }
.gn-dock button { position: relative; flex: 1 1 0; max-width: 120px; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; border-radius: 14px; background: transparent; color: #F6F0E4; font: 600 14px/1.1 var(--f, serif); cursor: pointer; }
.gn-dock button .gn-i { color: var(--gn-gold); width: 26px; height: 26px; }
.gn-dock button:active { background: var(--gn-panel2); }
.gn-dock em { position: absolute; top: 4px; right: calc(50% - 26px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gn-red); color: #fff; font: 700 13px/20px var(--f, serif); font-style: normal; text-align: center; }

.gn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 24px; border: 2px solid transparent; font: 700 17px/1.1 var(--f, serif); cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease; }
.gn-btn:active { transform: scale(.97); }
.gn-btn[disabled] { opacity: .45; cursor: default; }
.gn-btn-gold { background: var(--gn-gold); color: #17120E; border-color: var(--gn-gold); }
.gn-btn-red { background: var(--gn-red); color: #fff; border-color: #E8B93A; }
.gn-btn-red:hover { background: var(--gn-red-h); }
.gn-btn-ghost { background: rgba(23,18,14,.9); color: #F6F0E4; border-color: var(--gn-line); }
.gn-big { min-height: 54px; font-size: 18px; padding: 0 22px; }
.gn-btn .gn-i { flex: none; }

/* sheets */
.gn-sheets { position: absolute; inset: 0; pointer-events: none; }
.gn-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(78%, 720px); display: flex; flex-direction: column; background: var(--gn-panel); border-top: 2px solid var(--gn-gold); border-radius: 22px 22px 0 0; transform: translateY(104%); transition: transform .3s cubic-bezier(.2,.7,.2,1); pointer-events: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.gn-sheet.gn-in { transform: none; }
.gn-sheet.gn-top { pointer-events: auto; z-index: 3; }
.gn-sheet:not(.gn-top).gn-in { transform: translateY(104%); }
.gn-sheet > header { display: flex; align-items: center; gap: 6px; padding: 12px 8px 8px 18px; }
.gn-sheet > header h2 { flex: 1; margin: 0; font-size: 22px; color: var(--gn-gold); line-height: 1.15; }
.gn-x { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--gn-panel2); color: #F6F0E4; display: grid; place-items: center; cursor: pointer; }
.gn-sheet-b { overflow-y: auto; padding: 0 18px 18px; display: grid; gap: 12px; align-content: start; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.gn-sheet h3 { margin: 6px 0 0; font-size: 17px; color: #D2C8B6; font-weight: 600; }
@media (min-width: 900px) and (min-height: 520px) {
  .gn-sheet { left: auto; right: 12px; bottom: 76px; width: 400px; max-height: calc(100% - 140px); border: 2px solid var(--gn-gold); border-radius: 18px; transform: translateX(110%); }
  .gn-sheet.gn-in { transform: none; } .gn-sheet:not(.gn-top).gn-in { transform: translateX(110%); }
  .gn-sheet.gn-wide { width: 560px; }
  .gn-day { right: auto; left: 12px; bottom: 80px; justify-items: start; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .gn-sheet { left: auto; right: 8px; bottom: 0; width: min(420px, 55%); max-height: 100%; border-radius: 18px 0 0 0; transform: translateX(110%); }
  .gn-sheet.gn-in { transform: none; } .gn-sheet:not(.gn-top).gn-in { transform: translateX(110%); }
  .gn-dock { right: auto; width: 54%; } .gn-day { right: auto; left: 8px; bottom: 80px; }
  .gn-dock button { min-height: 50px; }
}
.gn-lead { margin: 0; font-size: 19px; line-height: 1.4; color: #F6F0E4; }
.gn-small { margin: 0; font-size: 16px; line-height: 1.4; color: #D2C8B6; }
.gn-tag::before { content: ""; }
.gn-warnp { color: #ffb4a8; }
.gn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gn-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 18px; line-height: 1.35; }
.gn-list .gn-i { color: var(--gn-gold); }
.gn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gn-actions .gn-btn { flex: 1 1 160px; }
.gn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gn-grid1 { display: grid; gap: 8px; }
.gn-grid2 .gn-btn { padding: 0 10px; font-size: 16px; min-height: 52px; }
.gn-meters { display: grid; gap: 8px; }
.gn-meter { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; align-items: center; font-size: 16px; }
.gn-meter .gn-i { grid-row: 1 / 3; color: var(--gn-gold); }
.gn-meter > i { height: 10px; border-radius: 6px; background: #3a2f22; overflow: hidden; position: relative; display: block; }
.gn-meter > i > i { display: block; height: 100%; background: var(--gn-gold); border-radius: 6px; }
.gn-meter > i.gn-unk > i { background: #6e5a2a; opacity: .6; }
.gn-meter > i.gn-range > i { position: absolute; top: 0; background: var(--gn-gold); opacity: .8; }
.gn-meter > span { color: #D2C8B6; }
.gn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gn-tagc { background: var(--gn-gold); color: #17120E; font: 700 14px/1 var(--f, serif); padding: 6px 10px; border-radius: 14px; text-transform: capitalize; }
.gn-sub { color: #D2C8B6; font-size: 16px; }
.gn-restc { display: inline-flex; align-items: center; gap: 8px; color: var(--gn-gold); } .gn-restc small { font-size: 15px; color: #D2C8B6; }
.gn-rows { display: grid; gap: 6px; }
.gn-row { display: grid; grid-template-columns: 14px 1fr auto auto auto; gap: 4px 10px; align-items: center; text-align: left; min-height: 52px; padding: 6px 12px; border-radius: 14px; border: 1.5px solid rgba(232,185,58,.2); background: var(--gn-panel2); color: #F6F0E4; font: 600 17px/1.1 var(--f, serif); cursor: pointer; }
.gn-row:active { background: #3a2f22; }
.gn-row .gn-sub { grid-column: 2; font-size: 14px; font-weight: 400; margin-top: -10px; }
.gn-row b { grid-column: 2; }
.gn-row .gn-dot { grid-row: 1 / 3; }
.gn-row .gn-ring, .gn-row .gn-ropes { grid-row: 1 / 3; grid-column: auto; color: var(--gn-gold); }
.gn-ropes { font-style: normal; font-size: 13px; background: #3a2f22; border-radius: 10px; padding: 3px 7px; color: var(--gn-gold); }
.gn-dot { width: 12px; height: 12px; border-radius: 50%; } .gn-dot.ok { background: var(--gn-ok); } .gn-dot.mid { background: var(--gn-mid); } .gn-dot.low { background: var(--gn-low); }
.gn-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gn-fchip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--gn-line); background: transparent; color: #F6F0E4; font: 600 15px/1 var(--f, serif); cursor: pointer; }
.gn-fchip[aria-pressed="true"] { background: var(--gn-gold); color: #17120E; border-color: var(--gn-gold); }
.gn-input { min-height: 50px; border-radius: 14px; border: 2px solid var(--gn-line); background: #17120E; color: #F6F0E4; padding: 0 14px; font: 600 18px var(--f, serif); width: 100%; box-sizing: border-box; }
.gn-lbl { font-size: 16px; color: #D2C8B6; }
textarea.gn-input { min-height: 96px; padding: 10px 14px; font-size: 16px; }
.gn-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gn-stages li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--gn-panel2); color: #8e8272; font-size: 17px; }
.gn-stages li.on { color: #F6F0E4; border: 1.5px solid var(--gn-gold); } .gn-stages li b { font-weight: 600; }

/* toasts */
.gn-toasts { position: absolute; left: 0; right: 0; bottom: calc(158px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; padding: 0 12px; pointer-events: none; }
.gn-toast { max-width: min(460px, 100%); padding: 10px 16px; border-radius: 16px; background: rgba(23,18,14,.94); border: 1.5px solid var(--gn-line); color: #F6F0E4; font: 600 16px/1.35 var(--f, serif); opacity: 0; transform: translateY(10px); transition: opacity .28s ease, transform .28s ease; display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.gn-toast.gn-in { opacity: 1; transform: none; }
.gn-toast .gn-i { color: var(--gn-gold); flex: none; }
.gn-good { border-color: var(--gn-ok); } .gn-warn { border-color: var(--gn-low); }
.gn-fact { display: block; background: var(--gn-card); color: var(--gn-card-ink); border-color: var(--gn-gold); padding: 12px 16px; font-weight: 400; font-size: 17px; }
.gn-fact b { display: inline-block; background: var(--gn-gold-d); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 10px; margin-bottom: 6px; }
.gn-fact p { margin: 0 0 8px; }
.gn-fact footer { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.gn-fact a { color: #6F4C00; font-weight: 700; } .gn-src { color: #6F4C00; font-weight: 700; }
.gn-link { border: 0; background: none; color: #6F4C00; font: 700 15px var(--f, serif); text-decoration: underline; cursor: pointer; padding: 6px 0; margin-left: auto; }
.gn-ring { color: var(--gn-gold); flex: none; }

@media (prefers-reduced-motion: reduce) { .gn-sheet, .gn-toast, .gn-load, .gn-btn { transition: none !important; } }

/* invitations, the checklist, the picker */
.gn-inv { border: 1.5px solid var(--gn-line); border-radius: 16px; background: var(--gn-panel2); padding: 12px 14px; display: grid; gap: 8px; }
.gn-inv.acc { border-color: var(--gn-gold); }
.gn-inv > header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .gn-inv > header b { font-size: 18px; }
.gn-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 16px; }
.gn-check li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; color: #D2C8B6; } .gn-check li.ok { color: #F6F0E4; } .gn-check li .gn-i { color: #8e8272; } .gn-check li.ok .gn-i { color: var(--gn-ok); }
.gn-preps { display: grid; gap: 8px; }
.gn-prep { display: grid; grid-template-columns: 28px 1fr 24px; gap: 12px; align-items: center; text-align: left; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--gn-line); background: var(--gn-panel2); color: #F6F0E4; cursor: pointer; font-family: inherit; }
.gn-prep.ok { border-color: var(--gn-ok); } .gn-prep > .gn-i { color: var(--gn-gold); } .gn-prep span { display: grid; gap: 2px; } .gn-prep b { font-size: 18px; } .gn-prep small { font-size: 15px; color: #D2C8B6; line-height: 1.3; } .gn-prep i { color: var(--gn-gold); display: grid; } .gn-prep.ok i { color: var(--gn-ok); }
.gn-okp { color: var(--gn-ok); display: flex; gap: 8px; align-items: center; width: 100%; margin: 0; }
.gn-static { cursor: default; }
.gn-pickrow { grid-template-columns: 34px 1fr; } .gn-pickrow .gn-badge { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 15px; border: 2px solid var(--gn-line); display: grid; place-items: center; font-size: 14px; color: #17120E; font-weight: 700; }
.gn-pickrow.on { border-color: var(--gn-gold); } .gn-pickrow.on .gn-badge { background: var(--gn-gold); border-color: var(--gn-gold); } .gn-pickrow[disabled] { opacity: .5; cursor: default; }
.gn-pickrow .gn-sub { grid-column: 2; margin-top: 0; font-size: 14px; } .gn-pickrow b { grid-column: 2; }
.gn-time { width: 100%; height: 30px; display: block; }
.gn-range { width: 100%; accent-color: var(--gn-gold); height: 36px; }
.gn-legend { display: flex; gap: 12px; flex-wrap: wrap; }

/* the map */
.gn-map { width: 100%; height: auto; max-height: 36dvh; background: #3d7ea0; border-radius: 16px; display: block; }
.gn-map .land { fill: #6a9f3e; stroke: #3f6b27; stroke-width: .35; }
.gn-pin { cursor: pointer; } .gn-pin .hit { fill: transparent; } .gn-pin .dot { stroke: #17120E; stroke-width: .35; }
.gn-pin.open .dot { fill: var(--gn-gold); } .gn-pin.locked .dot { fill: #8d8d8d; } .gn-pin.inv .ring { fill: none; stroke: #e0221b; stroke-width: .5; } .gn-pin.home .dot { fill: #F6F0E4; stroke: #17120E; }
.gn-mapleg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #D2C8B6; } .gn-mapleg span { display: inline-flex; align-items: center; gap: 6px; }
.gn-mapleg .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.5px solid #17120E; } .dot.open { background: var(--gn-gold); } .dot.locked { background: #8d8d8d; } .dot.inv { background: transparent; border-color: #e0221b; } .dot.home { background: #F6F0E4; }
.gn-pcard { min-height: 64px; border-radius: 14px; background: var(--gn-panel2); padding: 10px 14px; display: grid; gap: 4px; } .gn-link2 { color: var(--gn-gold); font-weight: 700; font-size: 16px; }

/* the notebook */
.gn-sec { border: 1.5px solid var(--gn-line); border-radius: 14px; padding: 4px 12px 8px; background: var(--gn-panel2); }
.gn-sec summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--gn-gold); list-style: none; } .gn-sec summary::-webkit-details-marker { display: none; } .gn-sec summary small { color: #D2C8B6; font-size: 14px; }
.gn-fcard { background: var(--gn-card); color: var(--gn-card-ink); border-radius: 12px; padding: 10px 14px; margin-top: 8px; font-size: 16px; line-height: 1.4; } .gn-fcard p { margin: 0 0 6px; } .gn-fcard footer { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; } .gn-fcard a { color: #6F4C00; font-weight: 700; }
.gn-fcard.gn-locked { display: flex; align-items: center; gap: 8px; background: #2a2218; color: #8e8272; }
.gn-res { background: var(--gn-panel2); border-radius: 14px; padding: 10px 14px; display: grid; gap: 4px; } .gn-res-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .gn-res-h b { font-size: 18px; } .gn-stars { margin-left: auto; display: inline-flex; color: var(--gn-gold); } .gn-stars .gn-i { width: 18px; height: 18px; fill: var(--gn-gold); }

/* the festa */
.gn.gn-festa .gn-dock, .gn.gn-festa .gn-day, .gn.gn-festa .gn-hud { display: none; }
.gn-fhud { position: absolute; inset: 0; pointer-events: none; display: block; }
.gn-ftop { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); left: 8px; right: 8px; display: flex; gap: 6px; flex-wrap: wrap; } .gn-ftop .gn-chip { pointer-events: auto; }
.gn-fbtn { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; } .gn-fbtn .gn-btn { pointer-events: auto; }
.gn-fmsg { position: absolute; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 520px; padding: 10px 16px; border-radius: 16px; background: rgba(23,18,14,.93); border: 1.5px solid var(--gn-line); font-size: 17px; line-height: 1.35; text-align: center; }
.gn-fhint { position: absolute; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 15px; color: #fff; text-shadow: none; background: rgba(23,18,14,.7); padding: 4px 10px; border-radius: 12px; width: fit-content; margin-inline: auto; }
.gn-fmeter { position: absolute; right: 10px; top: 80px; width: 46px; display: grid; gap: 4px; justify-items: center; font-size: 13px; background: rgba(23,18,14,.85); border: 1.5px solid var(--gn-line); border-radius: 14px; padding: 8px 4px; } .gn-fmeter > i { width: 12px; height: 140px; border-radius: 8px; background: #3a2f22; position: relative; overflow: hidden; display: block; } .gn-fmeter > i > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gn-gold); display: block; border-radius: 8px; transition: height .2s linear; }
.gn-fclock { position: absolute; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); height: 7px; border-radius: 6px; background: rgba(23,18,14,.8); max-width: 520px; margin: 0 auto; } .gn-fclock > i { display: block; height: 100%; background: var(--gn-gold); border-radius: 6px; } .gn-fclock > b { position: absolute; top: -3px; width: 2px; height: 13px; background: #fff; }
@media (orientation: landscape) and (max-height: 520px) { .gn-fmeter > i { height: 70px; } .gn-fmsg { bottom: 72px; } }

.gn.gn-festa .gn-toasts { bottom: auto; top: 58px; }

@media (max-width: 430px) {
  .gn-hud { gap: 4px; } .gn-hud-r { gap: 4px; } .gn-chip { padding: 0 9px; gap: 5px; font-size: 15px; min-height: 38px; } .gn-sq { width: 38px; padding: 0; }
  .gn-date { font-size: 14px; }
}

@media (max-width: 899px) and (orientation: portrait) { .gn-sheet.gn-short { max-height: 47%; } }

.gn-step { pointer-events: auto; max-width: min(300px, calc(100vw - 24px)); }
.gn-step button, .gn-step span { display: block; text-align: right; min-height: 36px; padding: 7px 14px; border-radius: 18px; background: rgba(246,239,223,.96); color: #2a2118; border: 1.5px solid var(--gn-gold); font: 600 15px/1.25 var(--f, serif); cursor: pointer; }
.gn-step span { cursor: default; }
.gn button:focus-visible, .gn a:focus-visible, .gn input:focus-visible, .gn summary:focus-visible, .gn [tabindex]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gn-pin:focus-visible { outline: none; } .gn-pin:focus-visible .dot { stroke: #fff; stroke-width: .8; }
@media (min-width: 900px) and (min-height: 520px) { .gn-step button, .gn-step span { text-align: left; } }

.gn, .gn * { font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; }
.gn .gn-i, .gn svg { font-feature-settings: normal; }

.gn-fclock { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); } .gn-fhint { bottom: calc(98px + env(safe-area-inset-bottom, 0px)); } .gn-fmsg { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

/* toasts sit in the sky, under the top bar: the ranch and the buttons stay clear */
.gn-toasts { bottom: auto; top: calc(58px + max(0px, env(safe-area-inset-top, 0px))); max-height: 60%; overflow: visible; }
.gn-fact { font-size: 16px; padding: 10px 14px; line-height: 1.35; } .gn-fact footer { font-size: 14px; }
.gn-hud .gn-chip { position: relative; } .gn-hud .gn-chip-b::after { content: ""; position: absolute; inset: -4px; }

.gn-mini { min-height: 40px; padding: 0 12px; font-size: 15px; grid-column: 3 / 5; grid-row: 1 / 3; }

@media (max-width: 430px) { .gn-hud { flex-wrap: wrap; } .gn-prog { display: none; } .gn-date b { display: none; } .gn-chip { padding: 0 8px; } }

/* goals, streak, achievements, parish fame and the bull's card */
.gn-dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 5px; background: var(--gn-red); display: block; }
.gn-streak { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--gn-panel2); border-radius: 14px; padding: 12px 14px; }
.gn-streak b { display: block; font-size: 19px; color: #F6F0E4; } .gn-streak small { color: #D2C8B6; font-size: 16px; }
.gn-dots { display: flex; gap: 6px; } .gn-dots i { width: 14px; height: 14px; border-radius: 7px; background: #3a2f22; } .gn-dots i.on { background: var(--gn-gold); }
.gn-h3 { margin: 14px 0 6px; font-size: 18px; color: var(--gn-gold); }
.gn-goal { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--gn-panel2); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.gn-goal > div { flex: 1; min-width: 0; } .gn-goal b { display: block; font-size: 17px; color: #F6F0E4; font-weight: 600; }
.gn-gbar { display: block; height: 8px; border-radius: 4px; background: #3a2f22; margin: 6px 0 3px; overflow: hidden; } .gn-gbar > i { display: block; height: 100%; background: var(--gn-gold); border-radius: 4px; }
.gn-goal small { color: #BDB3A2; font-size: 14px; } .gn-reward { color: var(--gn-gold); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.gn-goal .gn-btn { min-height: 44px; padding: 0 12px; font-size: 16px; }
.gn-ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; } .gn-ach li { display: flex; gap: 8px; align-items: center; font-size: 15px; color: #8f836f; } .gn-ach li.got { color: #F6F0E4; } .gn-ach li.got .gn-i { color: var(--gn-gold); }
.gn-fame { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .gn-fame li { display: flex; justify-content: space-between; font-size: 17px; color: #F6F0E4; } .gn-fame b { color: var(--gn-gold); font-weight: 600; }
.gn-card-img { display: block; width: 100%; max-width: 340px; margin: 0 auto 12px; border-radius: 10px; height: auto; }

/* juice: pops, flying coins, confetti, big friendly buttons, the farm sheet */
@keyframes gn-pop { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 65% { transform: scale(.94); } 100% { transform: scale(1); } }
.gn-pop { animation: gn-pop .38s cubic-bezier(.3,1.5,.5,1); }
.gn-fly { position: fixed; z-index: 90; width: 28px; height: 28px; pointer-events: none; color: var(--gn-gold); display: grid; place-items: center; }
.gn-fly .gn-i { width: 28px; height: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.gn-confetti { position: fixed; top: 0; width: 9px; height: 14px; border-radius: 2px; z-index: 89; pointer-events: none; }
.gn-btn, .gn-dock button, .gn-chip-b, .gn-deco { transition: transform .14s cubic-bezier(.3,1.6,.5,1); }
.gn-btn:active, .gn-dock button:active, .gn-chip-b:active, .gn-deco:active { transform: scale(.92); }
.gn-big { min-height: 58px; border-radius: 30px; }
.gn-decos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gn-deco { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 0; background: var(--gn-panel2); color: #F6F0E4; font: inherit; text-align: left; cursor: pointer; }
.gn-deco b { font-size: 16px; font-weight: 600; line-height: 1.2; } .gn-deco span { display: inline-flex; gap: 4px; align-items: center; color: var(--gn-gold); font-weight: 700; }
.gn-deco[disabled] { opacity: .45; cursor: default; }
.gn-place { position: absolute; left: 12px; right: 12px; bottom: 96px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(23,18,14,.94); border: 2px solid var(--gn-gold); border-radius: 22px; padding: 10px 12px 10px 16px; color: #F6F0E4; font-size: 17px; z-index: 40; }
.gn-place .gn-btn { min-height: 44px; padding: 0 14px; font-size: 16px; }
.gn-dock { gap: 0; } .gn-dock button { min-width: 0; flex: 1; padding-left: 2px; padding-right: 2px; }
@media (prefers-reduced-motion: reduce) { .gn-pop { animation: none; } .gn-btn:active, .gn-dock button:active { transform: none; } }

.gn-toast .gn-x2 { margin-left: 8px; color: var(--gn-gold); font-weight: 800; }

/* the farm loop (slice 1): level chip, XP, crops, land */
.gn-hud-l { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gn-lvl { gap: 6px; min-height: 36px; } .gn-lv { font-size: 13px; opacity: .8; } .gn-lvl b { font-size: 17px; color: var(--gn-gold); }
.gn-xpbar { width: 58px; height: 7px; border-radius: 7px; background: rgba(232,185,58,.25); overflow: hidden; display: inline-block; } .gn-xpbar i { display: block; height: 100%; background: var(--gn-gold); border-radius: 7px; transition: width .5s ease; }
@media (max-width: 430px) { .gn-hud-l { flex-direction: row; flex-wrap: wrap; } .gn-xpbar { width: 44px; } }
.gn-float { position: fixed; z-index: 95; pointer-events: none; font: 700 20px/1 var(--f, serif); color: #FFE28A; text-shadow: 0 2px 3px rgba(0,0,0,.6); white-space: nowrap; }
.gn-lcard { background: var(--gn-panel2); border-radius: 14px; padding: 12px 14px; margin-bottom: 6px; } .gn-lcard-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .gn-lcard-t b { font-size: 20px; color: var(--gn-gold); } .gn-lcard-t small { color: #BDB3A2; font-size: 14px; }
.gn-lcard-r { display: flex; justify-content: space-between; gap: 10px; color: #E8DFCF; font-size: 15px; } .gn-lcard-r span { display: inline-flex; gap: 6px; align-items: center; }
.gn-btn-w { width: 100%; margin: 2px 0 8px; }
.gn-crop { display: flex; align-items: center; gap: 10px; } .gn-crop img { flex: none; width: 44px; height: 44px; object-fit: contain; } .gn-stars { color: var(--gn-gold); letter-spacing: 1px; }
.gn-deco img { width: 40px; height: 40px; object-fit: contain; }
.gn-lvl-big { margin: 4px 0 8px; font-size: 44px; font-weight: 700; color: var(--gn-gold); text-align: center; } .gn-unl { margin: 0 0 14px; padding-left: 20px; color: #F6F0E4; font-size: 17px; line-height: 1.5; }
.gn-place small { display: block; font-size: 13px; color: #BDB3A2; margin-top: 2px; }

/* a compact round "pass the day" button; the label shows on the first visit only */
.gn-round { width: 58px; min-height: 58px; padding: 0; border-radius: 50%; justify-content: center; } .gn-round span { display: none; }
.gn-round.gn-lab { width: auto; padding: 0 20px; border-radius: 30px; } .gn-round.gn-lab span { display: inline; }

/* slice 2: hub, products, orders */
.gn-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.gn-hubb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px; padding: 8px 4px; border: 0; border-radius: 14px; background: var(--gn-panel2); color: #F6F0E4; font: 600 15px/1.1 var(--f, serif); cursor: pointer; }
.gn-hubb .gn-i { width: 26px; height: 26px; color: var(--gn-gold); } .gn-hubb em { position: absolute; top: 4px; right: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #B3201A; color: #fff; font: 700 13px/22px var(--f, serif); text-align: center; font-style: normal; }
.gn-hubb:active { transform: scale(.94); }
.gn-pimg { flex: none; width: 44px; height: 44px; object-fit: contain; } .gn-npc { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #3a2f22; }
.gn-needs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; } .gn-need { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 2px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 14px; } .gn-need .gn-pimg { width: 28px; height: 28px; } .gn-need small { color: #BDB3A2; font-size: 12px; } .gn-need.gn-short b { color: #ff9a8a; }
.gn-sell { display: flex; gap: 6px; flex: none; } .gn-sell .gn-btn { min-height: 44px; padding: 0 12px; } .gn-skip { padding: 0 10px; }
.gn-order.gn-wait { opacity: .7; } .gn-recipe small, .gn-order small { display: inline-flex; gap: 4px; align-items: center; } .gn-chain.gn-locked { opacity: .6; } .gn-chain h3 small { color: #BDB3A2; font-weight: 400; }
.gn-things { margin-top: 12px; }
.gn-order { flex-wrap: wrap; } .gn-order > .gn-sell { width: 100%; justify-content: flex-end; } .gn-order > .gn-sell .gn-btn-gold, .gn-order > .gn-sell .gn-btn-ghost:first-child { flex: 1; }
.gn-hud-l .gn-chip { box-sizing: border-box; }
.gn-goal > .gn-sell { flex: none; } .gn-order > .gn-sell { flex: 1 1 100%; } .gn-order > .gn-crop { flex: 1 1 100%; }

/* slice 3: customise */
.gn-wide3 { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; text-align: left; } .gn-wide3 span { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; } .gn-wide3 small { font: 400 14px/1.2 var(--f, serif); color: #BDB3A2; }
.gn-cust { display: grid; gap: 8px; margin: 8px 0; } .gn-idcard { display: flex; align-items: center; gap: 12px; } .gn-idcard > div { flex: 1; } .gn-idcard b { font-size: 19px; color: var(--gn-gold); } .gn-idcard small { display: block; color: #BDB3A2; font-size: 14px; }
.gn-ferro { border-radius: 12px; background: #F6F0E4; object-fit: contain; flex: none; } .gn-ferro-big { width: 120px; height: 120px; } .gn-flagprev { height: 140px; flex: none; }
.gn-ferrow { display: flex; align-items: center; gap: 14px; margin: 6px 0; flex-wrap: wrap; }
.gn-fgrid { display: grid; grid-template-columns: repeat(5, 40px); gap: 4px; } .gn-fcell { width: 40px; height: 40px; border-radius: 8px; border: 2px solid #4a3d2c; background: #2a2118; cursor: pointer; } .gn-fcell.gn-on { background: var(--c); border-color: #F6F0E4; }
.gn-sws { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; } .gn-sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #4a3d2c; background: var(--c); cursor: pointer; padding: 0; } .gn-sw.gn-on { border-color: #F6F0E4; box-shadow: 0 0 0 3px var(--gn-gold); } .gn-swl { color: #BDB3A2; font-size: 14px; margin-left: 4px; }
.gn-prev { display: grid; place-items: center; padding: 8px 0 4px; } .gn-prev img { max-width: 80%; }
.gn-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .gn-face { border: 3px solid transparent; border-radius: 16px; background: #2a2118; padding: 4px; cursor: pointer; } .gn-face.gn-on { border-color: var(--gn-gold); } .gn-face img { width: 100%; height: auto; border-radius: 12px; display: block; }
.gn-chip.gn-on { background: var(--gn-gold); color: #17120E; }
.gn-input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid #4a3d2c; background: #231c14; color: #F6F0E4; font: 500 17px var(--f, serif); }

/* slice 4: rewards, albums, the medal */
.gn-dstrip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0; } .gn-d { display: grid; place-items: center; height: 28px; border-radius: 8px; background: #2a2118; color: #BDB3A2; font: 600 12px var(--f, serif); font-style: normal; } .gn-d.gn-done { background: #3b3320; color: var(--gn-gold); } .gn-d.gn-now { background: var(--gn-gold); color: #17120E; box-shadow: 0 0 0 2px #F6F0E4; } .gn-d.gn-big7 { outline: 2px solid #8a6a2a; }
.gn-ents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .gn-ent { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: #2a2118; opacity: .45; text-align: center; } .gn-ent.gn-got { opacity: 1; background: #3b3320; } .gn-ent img { width: 48px; height: 48px; object-fit: contain; } .gn-ent small { font-size: 13px; line-height: 1.15; color: #F6F0E4; }
.gn-album { width: 100%; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.gn-medal { width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; justify-content: center; position: relative; background: conic-gradient(var(--gn-gold) var(--p), rgba(232,185,58,.22) 0); border: 0; }
.gn-medal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #17120E; } .gn-medal b { position: relative; font-size: 22px; } .gn-medal .gn-lv, .gn-medal .gn-xpbar { display: none; }
@media (max-width: 430px) { .gn-medal { width: 50px; height: 50px; min-height: 50px; } .gn-medal b { font-size: 20px; } }

/* the guide: the avô, top of the screen, under the bars; and a gold pulse on the button he points at */
.gn-guide { position: absolute; left: 10px; right: 10px; top: calc(max(8px, env(safe-area-inset-top, 0px)) + 132px); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: rgba(246,239,223,.97); color: #2a2118; border: 2px solid var(--gn-gold); z-index: 30; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.gn-guide p { margin: 0; flex: 1; font: 600 15px/1.28 var(--f, serif); } .gn-guide .gn-npc { background: #3a2f22; } .gn-guide-b { display: flex; flex-direction: column; gap: 6px; } .gn-guide-b .gn-btn { min-height: 38px; padding: 0 12px; font-size: 15px; }
.gn-spot { animation: gn-spot 1s ease-in-out infinite; position: relative; z-index: 3; } @keyframes gn-spot { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,185,58,.9); } 50% { box-shadow: 0 0 0 12px rgba(232,185,58,0); } }
@media (prefers-reduced-motion: reduce) { .gn-spot { animation: none; outline: 3px solid var(--gn-gold); } }
@media (max-width: 430px) { .gn-guide { top: calc(max(8px, env(safe-area-inset-top, 0px)) + 168px); } }

@media (max-width: 380px) { .gn-dock button span { font-size: 12px; letter-spacing: -0.2px; } .gn-dock button { padding-left: 2px; padding-right: 2px; } .gn-guide p { font-size: 14px; } }
