/* One look for every growtools.id page: the simulator's (growtopiasimulator.com, C:\retopia_planner\gs_ui2.css tokens):
   navy panels, light-blue chunky buttons with dark-blue ink and edge, a light-blue frame, yellow = chosen, Trebuchet.
   Linked LAST in home_page.html, vend_page.html and growscan_page.html, so a change here changes all three. */
:root {
  --navy: #1f2d44; --navy2: #2a3b57; --slot: #26344d; --frame: #8ccbef; --pick: #ffe14a;
  --btn: #b4e4fa; --btn2: #d6f1fd; --edge: #0f4466; --btn-ink: #165c86; --drop: rgba(0, 0, 0, .35);
  /* the names the pages already use, pointed at the simulator's colours */
  --bg: var(--navy); --surface: var(--slot); --surface-2: var(--navy2); --ink: #f3f8ff; --muted: #a9bdd6; --line: #3e5a80;
  --brand: var(--frame); --brand-2: var(--frame); --brand-ink: var(--btn-ink); --brand-soft: var(--navy2);
  --hero-a: #2b3d5b; --hero-b: var(--navy); --hero-ink: #f3f8ff; --hero-muted: #a9bdd6;
  --gold: var(--pick); --gold-bg: #3d3b22;
}
body { font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-weight: 600; background: var(--navy) none; }
b, h1, h2, .card b { font-weight: 800; }
h1, h2 { letter-spacing: 0; }

/* the top bar: the simulator's gradient with the light frame under it - and ONE layout on every page (owner
   2026-11-29: "header per page masih berubah-ubah"): from the left the way back (not on the menu itself), the tool's
   icon and name, what only that page has (search, live count), then pushed to the right EN/ID and Discord. Same
   height, same edge-to-edge width, same sizes. It scrolls away with the page on every page alike (a bar that stays
   put did not hold on the Vend Locator's phone layout, and one page behaving differently is what this rule ends). */
header, .bar { position: static; background: linear-gradient(#2b3d5b, #1f2d44); border-bottom: 3px solid var(--frame); }
header .wrap, .bar .wrap { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; max-width: none; margin: 0;
                           padding: 8px 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; color: var(--ink);
        font: 800 18px/1.2 inherit; text-decoration: none; }
.logo b { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.logo span { display: none; }                               /* (the Vend Locator's second line: one line everywhere) */
.logo i { width: 36px; height: 36px; display: grid; place-items: center; font-style: normal;
          background: var(--btn); border: 3px solid var(--edge); border-radius: 10px; box-shadow: 0 3px 0 var(--drop); }
.logo i img { display: block; }
header #lang, .bar #lang { margin-left: auto; }
.bar .live { margin-left: 0; } .bar .eyes { margin-left: 0; }
.seg { display: inline-flex; border-radius: 12px; }
.seg button { border: 0; padding: 8px 12px; font: 800 13px/1 inherit; cursor: pointer; }
.disc { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; background: #5865f2; color: #fff; font-size: 13px;
        text-decoration: none; }
header #lang button, .bar #lang button { padding: 8px 12px; font-size: 13px; }
header .disc, .bar .disc { display: inline-flex !important; }
header form { margin: 0; } header #q { padding: 6px 12px; }
@media (max-width: 640px) {
  .disc span { display: none; }
  header .wrap, .bar .wrap { padding: 8px 10px !important; gap: 8px; }
  .logo b, .bar .logo b { display: none; }                    /* a phone: the tool's icon says which page it is */
  .bar .back { margin-left: 0; } .bar .wrap { flex-wrap: wrap; }
  .bar .logo { flex: none; } .bar .logo i { display: grid; }  /* (the Vend Locator's own phone rules showed the name and hid the icon) */
  .bar .eyes { order: 0; }
  header #lang, .bar #lang { margin-left: auto !important; }
  header form { order: 9; flex: 1 1 100%; max-width: none; }      /* the page's own part drops to a second row */
  .bar .live { order: 9; }
}

/* buttons: light blue, dark-blue ink and edge, a hard shadow that gives way under the finger */
.btn, .back, .go, .seg, .pager .btn {
  border: 3px solid var(--edge); border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 800;
  box-shadow: 0 3px 0 var(--drop);
}
.btn:hover, .back:hover, .go:hover { background: var(--btn2); border-color: var(--edge); color: var(--btn-ink); }
.btn:active, .back:active, .go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--drop); }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 24px; line-height: 22px; text-decoration: none; }
.seg, #lang { overflow: hidden; padding: 0; background: var(--btn); border: 3px solid var(--edge); }
.seg button, #lang button { color: #5b8fb0; font-weight: 800; background: none; }
.seg button.on, #lang button.on { background: var(--pick); color: #2a2000; }
.disc { border-radius: 12px; border: 3px solid #3a44b8; box-shadow: 0 3px 0 var(--drop); font-weight: 800; }
.toggle { border: 2px solid var(--line); border-radius: 99px; background: var(--slot); font-weight: 700; }
.toggle:has(input:checked) { border-color: var(--pick); background: var(--slot); }
.toggle:has(input:checked)::before { border-color: var(--pick); background-color: var(--pick); }

/* boxes: dark inventory boxes with a visible frame; yellow when chosen */
.card { border: 3px solid var(--line); border-radius: 14px; background: var(--slot); box-shadow: none; }
section.card { background: #23324c; }
.item, .row, .wrow, .tile, .best div, .pic { border: 2px solid var(--line); border-radius: 8px; background: var(--slot); box-shadow: none; }
a.card:hover, .item:hover, .row:hover, .wrow:not(:disabled):hover { border-color: var(--pick); }
.row.sel { border-color: var(--pick); background: var(--navy2); box-shadow: 0 0 0 2px rgba(255, 225, 74, .35); }
.best .gold { border-color: var(--pick); background: var(--gold-bg); }
#q { border: 3px solid var(--frame); border-radius: 12px; background: var(--slot); font-weight: 700; }
#q:focus { border-color: var(--pick); box-shadow: 0 0 0 2px rgba(255, 225, 74, .35); }
.tag { border-radius: 99px; font-weight: 800; }
:focus-visible { outline-color: var(--pick); }

/* GrowScan: the dialog is the game's own; only the page around it follows the skin */
body:has(.gs-dlg) { background: var(--navy); }
body:has(.gs-dlg) .back { position: fixed; background: var(--btn); color: var(--btn-ink); }
