/* Sea Bandits web theme — mirrors the in-game frame art:
   deep-sea navy panels, wood/brick header, gold borders, parchment text. */
:root {
  --sea-deep:   #071019;
  --sea-panel:  #0b1622;
  --sea-panel2: #0e1d2c;
  --wood:       #4a1f10;
  --wood-hi:    #6b2e16;
  --gold:       #d4a02a;
  --gold-hi:    #ffd75e;
  --gold-dim:   #8a6a1e;
  --parchment:  #efe3c2;
  --ink-dim:    #9aa7b0;
  --green:      #3fae52;
  --green-hi:   #7de08f;
  --red:        #c8434c;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--sea-deep) url('/img/bg-sea.jpg') center/cover fixed no-repeat;
  color: var(--parchment); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px;
}
h1,h2,h3, .brand { font-family: 'Cinzel Decorative', 'Cinzel', serif; color: var(--gold-hi);
  text-shadow: 0 2px 4px #000; letter-spacing: .04em; }
a { color: var(--gold-hi); }

/* Header = wood/brick title bar, like the game frames */
header {
  background: linear-gradient(180deg, var(--wood-hi), var(--wood) 70%);
  border-bottom: 3px solid var(--gold); box-shadow: 0 4px 18px #000c;
  display: flex; align-items: center; gap: 2rem; padding: .6rem 2rem;
}
header .brand { font-size: 1.5rem; margin-right: auto; }
header nav a {
  color: var(--parchment); text-decoration: none; font-style: italic;
  padding: .35rem .8rem; border: 1px solid transparent; border-radius: 3px;
}
header nav a:hover, header nav a.active {
  color: var(--gold-hi); border-color: var(--gold-dim); background: #0006;
}

main { max-width: 1100px; margin: 2.2rem auto; padding: 0 1rem; }

/* Gold-bordered panel = the game's content boxes */
.panel {
  background: linear-gradient(180deg, var(--sea-panel2), var(--sea-panel));
  border: 2px solid var(--gold); border-radius: 6px;
  box-shadow: 0 0 0 3px #000a, 0 8px 24px #000c; padding: 1.4rem 1.8rem; margin-bottom: 1.6rem;
}
.panel h2 { margin-top: 0; border-bottom: 1px solid var(--gold-dim); padding-bottom: .4rem; }

.grid { display: grid; gap: 1.6rem; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px){ .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* Buttons: green = go (like the in-game green sheet), teal = neutral */
.btn {
  display: inline-block; padding: .55rem 1.6rem; border-radius: 4px; cursor: pointer;
  font-family: 'Cinzel', serif; font-size: 1rem; text-decoration: none; border: 2px solid #222;
  box-shadow: 0 0 0 1px var(--gold-dim), 0 3px 8px #000a; color: #fff;
}
.btn-green { background: linear-gradient(180deg, var(--green-hi) -60%, var(--green) 60%, #1d6e2e); }
.btn-teal  { background: linear-gradient(180deg, #4fb9c9 -60%, #197687 60%, #0e4a56); }
.btn:hover { filter: brightness(1.15); }

/* Status dots / pills */
.dot { display:inline-block; width:.75em; height:.75em; border-radius:50%; margin-right:.5em; }
.dot.up   { background: var(--green-hi); box-shadow: 0 0 6px var(--green-hi); }
.dot.down { background: var(--red);      box-shadow: 0 0 6px var(--red); }
.pill-best { background: #7c1a22; color: #ffd75e; font-size:.75rem; padding:.15rem .5rem;
  border-radius:2px; font-family:'Cinzel',serif; }

table { width: 100%; border-collapse: collapse; }
th { color: var(--gold); font-family: 'Cinzel', serif; text-align: left;
  border-bottom: 1px solid var(--gold-dim); padding: .4rem .6rem; }
td { padding: .4rem .6rem; border-bottom: 1px solid #ffffff12; }
tr:hover td { background: #ffffff08; }

input, select {
  width: 100%; padding: .55rem .8rem; margin: .3rem 0 1rem;
  background: #081019; color: var(--parchment); border: 1px solid var(--gold-dim);
  border-radius: 3px; font-family: inherit; font-size: 1rem;
}
input:focus { outline: none; border-color: var(--gold-hi); }
label { font-style: italic; color: var(--gold); }
.error { color: var(--red); font-style: italic; }
.ok    { color: var(--green-hi); font-style: italic; }

footer { text-align: center; color: var(--ink-dim); padding: 2rem; font-style: italic; }

/* Package cards (mirror the Premium Shop) */
.pkg { text-align: center; position: relative; cursor: pointer;
  border: 2px solid var(--gold-dim); border-radius: 6px; padding: 1.2rem;
  background: linear-gradient(180deg, var(--sea-panel2), var(--sea-panel)); }
.pkg.selected { border-color: var(--gold-hi); box-shadow: 0 0 12px #d4a02a66; }
.pkg .price { margin-top: .8rem; }
.pkg .ribbon { position: absolute; top: -8px; right: 10px; }
