/* Pantheon standard UI styles. Uses the SVG art in this folder.
   Palette: clay, parchment and gold on a night-sky backdrop. */
:root {
  --ink: #2a1d14; --ink-2: #4a3526;
  --parch: #efe2c4; --parch-2: #e2d0a6; --parch-3: #c9b07e;
  --gold: #d4a640; --gold-light: #f2d684; --gold-dark: #9a7322;
  --night: #1b1722; --panel: #2a2431; --panel-light: #3c3446; --panel-edge: #5a4d66;
  --stone: #8a8172; --blood: #a8322a; --sky: #4f86b8; --leaf: #5f9a46; --glow: #fff3c4;
  --god-crimson: #c8423a; --god-azure: #3b7dd8; --god-verdant: #4c9a47;
  --god-amber: #e0892a; --god-violet: #8e5cc2; --god-teal: #2fa6a0;
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya", "Palatino Linotype", Palatino, Georgia, serif;
}
body.pantheon { margin: 0; background: radial-gradient(ellipse at 50% 0%, #2f2840 0%, var(--night) 60%); color: var(--parch); font-family: var(--font-body); }
.pt-title { font-family: var(--font-display); letter-spacing: .08em; font-weight: 700; }

/* 9-slice panels */
.pt-panel        { border: 24px solid transparent; border-image: url(ui/panel-parchment.svg) 24 fill / 24px stretch; color: var(--ink); padding: 4px; }
.pt-panel.stone  { border-image-source: url(ui/panel-stone.svg); color: var(--parch); }
.pt-panel.scroll { border-image: url(ui/panel-scroll.svg) 16 fill / 16px stretch; padding: 10px 14px; }
.pt-tooltip      { border: 10px solid transparent; border-image: url(ui/tooltip.svg) 10 fill / 10px stretch; color: var(--parch); font-size: 14px; padding: 2px 4px; }
.pt-book         { border: 22px solid transparent; border-image: url(ui/book-page.svg) 22 fill / 22px stretch; color: var(--ink); padding: 12px 18px; }

/* Buttons: one 9-slice shape in six states */
.pt-btn { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--ink);
  background: none; border: 12px solid transparent; border-image: url(ui/button.svg) 12 fill / 12px stretch;
  padding: 0 8px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pt-btn:hover   { border-image-source: url(ui/button-hover.svg); }
.pt-btn:active  { border-image-source: url(ui/button-pressed.svg); }
.pt-btn:disabled{ border-image-source: url(ui/button-disabled.svg); color: #4a443c; cursor: default; }
.pt-btn.danger  { border-image-source: url(ui/button-danger.svg); color: #fff; }
.pt-btn.dark    { border-image-source: url(ui/button-dark.svg); color: var(--parch); }
.pt-btn img, .pt-btn svg { width: 22px; height: 22px; }

.pt-divider { height: 20px; background: url(ui/divider.svg) center / contain no-repeat; margin: 8px 0; }
.pt-ribbon  { width: 320px; height: 56px; background: url(ui/ribbon.svg) center / contain no-repeat; color: var(--parch);
  display: flex; align-items: center; justify-content: center; padding-bottom: 10px; box-sizing: border-box;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-shadow: 0 1px 0 var(--ink); }

/* Resource counter: icon + number */
.pt-stat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.pt-stat img, .pt-stat svg { width: 28px; height: 28px; }

/* Progress bar (AP, relic progress, faith) */
.pt-bar { position: relative; height: 20px; border: 8px solid transparent; border-image: url(ui/bar-frame.svg) 9 fill / 9px stretch; box-sizing: border-box; }
.pt-bar > i { position: absolute; inset: -4px auto -4px -4px; border-radius: 6px; background: linear-gradient(var(--gold-light), var(--gold)); }

/* Icons from the sprite: <svg class="pt-icon"><use href="art/icons/sprite.svg#i-ap"/></svg> */
.pt-icon { width: 32px; height: 32px; vertical-align: middle; }

/* Hex map tiles are pointy-top, 55.43 x 64 at 1x (odd-r offset rows, as in the server).
   Tile (x, y) sits at left = x*55.43 + (y odd ? 27.71 : 0), top = y*48. */
.pt-hex { width: 55.43px; height: 64px; position: absolute; }
