/* halvaria.com header, shared by the website and the web shop (resources/views/site/partials/header.blade.php). Self-contained. */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
.top { --ink: #3b2414; --parch: #f6ead2; --parch-2: #efdcb8; --wood: #4a2a14; --wood-2: #2a170c; --gold: #c8902e; --gold-2: #e8b64a; --gold-3: #ffd98a;
  --ember: #c2481f; --shadow: 0 10px 30px rgba(42, 23, 12, .28); --display: "Cinzel", Georgia, serif; --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px; font-family: var(--body); line-height: 1.5; }
.top *, .top *::before, .top *::after { box-sizing: border-box; }
.top .wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.top img { display: block; max-width: 100%; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #e8b64a; color: #2a170c; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

.top {
  position: sticky; top: 0; z-index: 50; color: var(--parch);
  background: linear-gradient(180deg, #5a3519, var(--wood) 60%, #3d2210);
  border-bottom: 3px solid var(--gold); box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.top::after { content: ""; position: absolute; inset: auto 0 -7px; height: 4px; background: linear-gradient(90deg, transparent, var(--gold-3), transparent); opacity: .5; }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: transform .3s; }
.brand:hover img { transform: scale(1.05) rotate(-1deg); }
.nav { display: none; gap: 2px; margin-inline: auto; }
.nav a, .nav span { color: var(--parch); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; display: flex; align-items: center; gap: 6px; transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(232, 182, 74, .18); color: var(--gold-3); }
.nav .soon { opacity: .55; cursor: default; }
.nav .soon small { font-family: var(--body); font-size: .65rem; background: var(--ember); color: #fff; border-radius: 6px; padding: 1px 5px; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--parch); font-weight: 800; font-size: .85rem; padding: 6px 9px; border: 1px solid rgba(232, 182, 74, .5); border-radius: 9px; text-transform: uppercase; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 110%; margin: 0; padding: 6px; list-style: none; background: var(--parch); border: 2px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); min-width: 140px; }
.lang li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--parch-2); }
.burger { display: inline-flex; background: none; border: 1px solid rgba(232, 182, 74, .5); border-radius: 10px; padding: 7px 9px; color: var(--parch); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
.drawer { display: none; padding: 6px var(--gutter) 14px; border-top: 1px solid rgba(232, 182, 74, .25); }
.drawer.open { display: grid; gap: 2px; animation: drop .25s ease-out; }
.drawer a, .drawer span { color: var(--parch); text-decoration: none; font-family: var(--display); font-weight: 700; padding: 11px 8px; border-radius: 10px; }
.drawer a:hover { background: rgba(232, 182, 74, .15); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) { .nav { display: flex; } .burger, .drawer, .drawer.open { display: none; } }
.who { display: flex; align-items: center; gap: 6px; color: var(--gold-3); text-decoration: none; font-weight: 800; font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who svg { flex: none; }


.top .btn {
  --b1: #d25a26; --b2: #9e3415; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 800 1rem/1 var(--body); color: #fff8ea; text-decoration: none; padding: 13px 22px; border-radius: 14px;
  background: linear-gradient(180deg, var(--b1), var(--b2)); border: 2px solid var(--gold-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #6e220c, 0 8px 18px rgba(110, 34, 12, .35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4); transition: transform .15s, box-shadow .15s, filter .2s;
}
.top .btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 0 #6e220c, 0 12px 24px rgba(110, 34, 12, .4); }
.top .btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 #6e220c; }
.top .btn.gold { --b1: #f1c766; --b2: #c58a26; color: var(--wood-2); text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 0 #7d5513, 0 8px 18px rgba(125, 85, 19, .35); }
.top .btn.ghost { background: rgba(42, 23, 12, .35); backdrop-filter: blur(4px); box-shadow: none; }
.top .btn.small { padding: 8px 13px; font-size: .9rem; border-radius: 11px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 #6e220c; }
@media (max-width: 420px) {
  .top .wrap { gap: 6px; }
  .brand img { height: 32px; }
  .lang summary { padding: 5px 7px; }
  .top .btn.small { padding: 7px 10px; font-size: .85rem; }
  .burger { padding: 6px 7px; }
}

/* Open Beta ribbon (roadmap A9, docs/ops/open-beta.md): the game's red swallowtail ribbon (UI/Workshop/ws-ribbon, art/ui/ribbon.webp)
   as a 9-slice, gold serif caps and a slow shine. Sizes: .small hangs under the header wordmark, default over page headers, .big in the hero. */
.beta-ribbon {
  --h: 34px; --tail: calc(var(--h) * .77);
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: var(--h); vertical-align: middle;
  border-style: solid; border-color: transparent; border-width: 0 var(--tail); border-image: url("art/ui/ribbon.webp") 0 74 fill / 0 var(--tail) stretch;
  padding: 0 2px calc(var(--h) * .05) calc(2px + .16em); margin: 0; overflow: hidden;
  font: 800 calc(var(--h) * .36)/1 "Cinzel", Georgia, serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: #ffe6ad; text-shadow: 0 1px 0 #4a1004, 0 0 10px rgba(255, 196, 96, .45);
  filter: drop-shadow(0 3px 4px rgba(30, 10, 2, .45)); pointer-events: none;
}
.beta-ribbon::after {
  content: ""; position: absolute; inset: 20% 0 22%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 238, 196, .38) 50%, transparent 65%) no-repeat; background-size: 250% 100%;
  animation: beta-shine 5.5s ease-in-out 1.2s infinite; background-position: 150% 0;
}
@keyframes beta-shine { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
.beta-ribbon.small { --h: 22px; letter-spacing: .14em; }
.beta-ribbon.big { --h: 46px; margin-bottom: 14px; }
.brand { position: relative; }
.brand .beta-ribbon { position: absolute; left: 50%; top: calc(100% - 3px); transform: translateX(-50%); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .beta-ribbon::after { animation: none; display: none; } }
