/* Game look for the existing player portal (/portal/) and admin page (/control/).
   Loaded after /assets/gh-web/site.css and tokens.css. It only restyles; it does not
   change any element the portal scripts read or write. */

body { background: var(--bg); color: var(--ink); font-family: var(--font-body); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(var(--scene-tint), var(--scene-tint)), var(--scene) center / cover no-repeat; }

/* top bar = the client's tab row */
header { background: linear-gradient(#ffffff26, #00000026), var(--header-bg); border-bottom: 2px solid #c59e81; box-shadow: 0 1px 0 #432a1f, 0 6px 14px #0004; min-height: 72px; }
header .brand span { font-family: var(--font-display); font-weight: 900; color: #e9ecf2; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
header .brand .gold { color: #ffb020; }
header nav { gap: 8px; }
header nav a, .quiet, .button.outline, .theme-switch button {
  color: #1b1d24; font-weight: 700; text-shadow: 0 1px 0 #ffffff99; border-radius: 5px; border: 1px solid #4e5060;
  background: linear-gradient(#f8f8f8 0%, #c5c9db 14%, #babbca 34%, #abaab7 54%, #a3a4ad 70%, #90909e 88%, #6f7282 100%);
  box-shadow: 0 0 0 2px #c59e81, 0 0 0 3px #432a1f, inset 0 1px 0 #fffc;
}
header nav a { padding: 8px 14px; }
header nav a:hover, .quiet:hover, .button.outline:hover, .theme-switch button:hover, .theme-switch button[aria-pressed="true"] {
  color: #fff; text-shadow: 0 1px 1px #00306b; border-color: #0a3d7a;
  background: linear-gradient(#f0f6fc 0%, #8bbef1 14%, #75ade9 32%, #5799e2 52%, #4792de 68%, #217ad8 86%, #005bcd 100%);
}
.theme-switch { display: inline-flex; gap: 6px; margin-inline-start: 6px; }
.theme-switch button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer; }
.theme-switch svg { width: 16px; height: 16px; }

/* main action = the client's green button */
.button { color: #fff; text-shadow: 0 1px 1px #1f5410; border: 1px solid #23590f; border-radius: 5px;
  background: linear-gradient(#e3fbb8 0%, #a6e65a 16%, #8fd64c 40%, #6fc03d 62%, #58b035 80%, #3f8f22 100%); box-shadow: inset 0 1px 0 #ffffffaa, 0 2px 3px #0005; }
.button:hover { background: linear-gradient(#f0ffd2 0%, #b8f26c 16%, #9fe25a 40%, #7fcd48 62%, #63bb3c 80%, #489a28 100%); }
.danger, .button.danger { color: #fff; text-shadow: 0 1px 1px #5a0a04; border-color: #5a0a04;
  background: linear-gradient(#ffc6bd 0%, #f2604c 40%, #c8261a 80%, #8f1309 100%); }

/* windows: tan (light) or charcoal (dark), bronze frame */
.card { background: var(--win); color: var(--ink); border: 2px solid #c59e81; border-radius: 8px;
  box-shadow: 0 0 0 1px #432a1f, inset 0 0 0 1px #f1dccb88, 0 10px 28px #0006; }
.portal-shell h1, .card h2 { font-family: var(--font-display); font-weight: 900; color: var(--title); text-shadow: var(--title-shadow); }
.portal-shell > section:not(.card) > h1 { display: inline-block; padding: 6px 18px; border-radius: 8px; background: var(--win); border: 2px solid #c59e81; box-shadow: 0 0 0 1px #432a1f; }
.eyebrow { display: inline-block; padding: 4px 14px; color: #fff; font-size: .8rem; letter-spacing: 0; border-radius: 6px 6px 0 0;
  background: linear-gradient(#5d6a7c, #2b3442); border: 2px solid #c59e81; border-bottom: 0; }
.muted, .status, label { color: var(--muted); }
label { font-weight: 700; color: var(--ink); }
input, select { background: #fff; color: #1b1d24; border: 1px solid #8e91a0; border-radius: 3px; box-shadow: inset 0 2px 3px #0002; }
input:focus-visible, select:focus-visible { outline: none; border-color: #217ad8; box-shadow: 0 0 0 2px #8bbef1; }
details summary { color: var(--accent-text); font-weight: 700; }

/* notices = the black tutorial popup */
.notice { background: #000000c4; color: #fff; border: 1px solid #d2b59c; border-inline-start-width: 4px; border-inline-start-color: var(--yellow); border-radius: 2px; font-weight: 700; }
.notice.error { border-inline-start-color: #f2604c; }

/* tables = the dark player list */
.table-wrap { background: var(--list-bg); border: 2px solid #c59e81; border-radius: 6px; box-shadow: 0 0 0 1px #432a1f; padding: 4px; }
table { color: #fff; }
th { color: var(--yellow); border-bottom-color: #ffffff2a; }
td { border-bottom-color: #ffffff14; }
tbody tr:hover { background: #ffffff12; }
.money { color: var(--gold-text); font-family: var(--font-display); }

/* character strip = inventory cells */
.unit-strip { background: linear-gradient(#56495b, #3f3445); border: 1px solid #75677a; border-radius: 6px; }
.unit-portrait, .unit-portrait span { color: #fff; }
.emblem-option { background: linear-gradient(#56495b, #3f3445); border-color: #75677a; color: #fff; }
.clan-emblems { border-color: #c59e81; }

footer { background: var(--header-bg); border-top: 2px solid #c59e81; color: var(--muted); }

/* language button next to the theme switch */
.lang-link { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; margin-inline-start: 6px; text-decoration: none; }
.lang-link[lang="ar"] { font-family: "Noto Kufi Arabic", Tahoma, sans-serif; }
