@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Old+Turkic&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@800;900&display=swap');

:root{color-scheme:dark;--gui-bg:#0e1715;--gui-panel:#192522;--gui-border:#8a7148;--gui-gold:#f2d49b;--gui-text:#eee7d9;--gui-muted:#bdb5a3;--gui-health:#b94745;--gui-mana:#4baec5;--gui-xp:#e5b555}
.gui-panel{box-sizing:border-box;color:var(--gui-text);background:linear-gradient(145deg,var(--gui-panel),var(--gui-bg));border:1px solid var(--gui-border);box-shadow:0 12px 30px #0006;padding:1rem}
.gui-panel h2,.gui-dialog h2{margin:0 0 1rem;color:var(--gui-gold);font:600 1.35rem Georgia,serif}
.gui-button,.gui-slot{cursor:pointer;color:var(--gui-gold);background:#28332b;border:1px solid var(--gui-border);font:600 .95rem system-ui;padding:.55rem .8rem}

.gui-button:focus-visible,.gui-slot:focus-visible,.gui-input:focus-visible{outline:2px solid #8fe2d9;outline-offset:3px}
.gui-button--primary{background:#d8ad62;color:#171812}
.gui-button--danger{background:#642a2b;color:#ffded8;border-color:#b86967}
.gui-button:disabled,.gui-slot:disabled{cursor:default;opacity:.55;filter:none}
.gui-input{box-sizing:border-box;display:block;width:100%;margin:.4rem 0 0;padding:.6rem;background:var(--gui-bg);border:1px solid var(--gui-border);color:var(--gui-text);font:inherit}
.gui-meter{display:grid;gap:.35rem;margin:.7rem 0}
.gui-meter span{display:flex;justify-content:space-between;gap:.5rem}
.gui-meter progress{appearance:none;width:100%;height:.65rem;border:1px solid #665c49;background:#322e29;color:var(--bar,var(--gui-xp))}
.gui-meter progress::-webkit-progress-bar{background:#322e29}
.gui-meter progress::-webkit-progress-value{background:var(--bar,var(--gui-xp))}
.gui-meter progress::-moz-progress-bar{background:var(--bar,var(--gui-xp))}
.gui-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem}
.gui-slot{min-width:0;aspect-ratio:1;display:grid;place-content:center;gap:.15rem;text-align:center;padding:.15rem}
.gui-slot span{font:1.45rem Georgia,serif}
.gui-slot small{color:var(--gui-muted);font-size:.72rem}
.gui-slot--rare{border-color:#ae8acb;background:#35253e}
.gui-quest{padding:.75rem;border-left:3px solid var(--gui-xp);background:#ffffff08}
.gui-quest strong{color:var(--gui-gold)}
.gui-quest p{margin:.35rem 0}
.gui-dialog{width:min(90vw,410px);color:var(--gui-text);background:var(--gui-panel);border:1px solid var(--gui-border);padding:1.3rem}
.gui-dialog::backdrop{background:#020707bb}

.gui-frame{
  --gui-corner:linear-gradient(135deg,#ffe8ac,#a77740);
  position:relative;
  isolation:isolate;
  border:1px solid #967344;
  padding:1.1rem 1.3rem;
  background:
    radial-gradient(ellipse at top,#273d33 0%,transparent 68%),
    linear-gradient(150deg,#151e1c,#0e1615);
  box-shadow:0 16px 45px #050808bb,inset 0 0 24px #0007;
}
.gui-frame::before,.gui-frame::after{
  content:"";position:absolute;pointer-events:none;
}
.gui-frame::before{
  inset:4px;border:1px solid #9c7c445c;
}
.gui-frame::after{
  inset:-2px;
  background:
    var(--gui-corner) left top/22px 3px,
    var(--gui-corner) left top/3px 22px,
    var(--gui-corner) right top/22px 3px,
    var(--gui-corner) right top/3px 22px,
    var(--gui-corner) left bottom/22px 3px,
    var(--gui-corner) left bottom/3px 22px,
    var(--gui-corner) right bottom/22px 3px,
    var(--gui-corner) right bottom/3px 22px;
  background-repeat:no-repeat;
  filter:drop-shadow(0 0 3px #e1ae5a75);
}
.gui-button{
  min-height:42px;border-color:#8d7048;
  background:linear-gradient(180deg,#34473c,#202b25 52%,#171e1a);
  box-shadow:inset 0 1px #ffffff28,inset 0 -2px #080d0a80,0 3px 8px #0005;
  
}
.gui-button:active:not(:disabled){transform:translateY(1px)}
.gui-button--primary,.gui-button--tab[aria-pressed=true]{
  color:#24180d;border-color:#e4bf79;
  background:linear-gradient(180deg,#f6ddb0,#d7ab60 49%,#b28446);
  text-shadow:0 1px #fff5cc9c;
}

.gui-button--danger{background:linear-gradient(180deg,#78403f,#502526);border-color:#a96458}
.gui-button--tab:not([aria-pressed=true]){color:#efdbb1;border-color:#63543a}
.gui-input{background:linear-gradient(180deg,#111c19,#182722);border-color:#7e6947;box-shadow:inset 0 2px 5px #05090788}
@media(prefers-reduced-motion:reduce){.gui-button{transition:none}}

.gui-frame--royal{
  --gui-corner:linear-gradient(120deg,#6b4528 3%,#bd8a49 25%,#ffe5a0 47%,#a4723e 78%,#664428);
  border:1px solid #987541;
  background:radial-gradient(ellipse at 50% -20%,#365045 0%,transparent 62%),linear-gradient(150deg,#1c2925,#101b18 68%,#0b1311);
  box-shadow:0 22px 60px #050708bb,0 0 0 4px #090d0ce0,inset 0 0 0 2px #bd945332,inset 0 0 35px #050b08aa;
}
.gui-frame--royal::before{
  inset:6px;border-color:#a1834f72;
  background:
    linear-gradient(135deg,transparent 44%,#735733 45% 54%,transparent 55%) left top/12px 12px,
    linear-gradient(45deg,transparent 44%,#735733 45% 54%,transparent 55%) right top/12px 12px,
    linear-gradient(45deg,transparent 44%,#735733 45% 54%,transparent 55%) left bottom/12px 12px,
    linear-gradient(135deg,transparent 44%,#735733 45% 54%,transparent 55%) right bottom/12px 12px;
  background-repeat:no-repeat;
}
.gui-frame-gem{
  position:absolute;z-index:1;left:50%;top:0;width:16px;height:16px;transform:translate(-50%,-50%) rotate(45deg);
  background:linear-gradient(145deg,#bdfff0 5%,#4baba0 38%,#133d3a 76%);border:2px solid #dcb879;box-shadow:0 0 0 2px #30271c,0 0 13px #6fe0be80;pointer-events:none;
}
.gui-password{position:relative;margin:0 0 .65rem}
.gui-password .gui-input{padding-right:5rem;min-height:44px}
.gui-password .gui-password-toggle{position:absolute;right:4px;top:4px;bottom:4px;min-height:0;border-color:#6e623f;font-size:.8rem;padding:0 .55rem}
.gui-input:focus{border-color:#dbb46d;box-shadow:0 0 0 2px #dfb36539,inset 0 2px 5px #05090788}
.gui-button--tab{position:relative;min-height:40px}
.gui-button--tab[aria-pressed=true]::after{content:"";position:absolute;height:2px;left:12%;right:12%;bottom:-3px;background:#f9d98d;box-shadow:0 0 7px #ffcb70}

.gui-frame--royal{
  --gui-gold:#eac887;
  --gui-text:#eadcc6;
  --gui-border:#8c6240;
  --gui-corner:linear-gradient(135deg,#88603b,#e6b87d 34%,#6e4628 62%,#cca06b);
  border:6px solid transparent;
  background:
    radial-gradient(ellipse at top,#39291d4d,transparent 65%) padding-box,
    repeating-linear-gradient(48deg,transparent 0 10px,#9f794b0b 11px 12px,transparent 13px 20px) padding-box,
    repeating-linear-gradient(135deg,transparent 0 10px,#9f794b0b 11px 12px,transparent 13px 20px) padding-box,
    linear-gradient(165deg,#221a13,#100e0b 65%,#1b1511) padding-box,
    linear-gradient(155deg,#8d693f,#513727 22%,#ba9560 47%,#593e2a 70%,#a98455) border-box;
  box-shadow:0 17px 40px #000b,0 0 0 1px #513b28,0 0 0 3px #211811,inset 0 0 20px #000a;
}
.gui-frame--royal::before{
  inset:-4px;border:1px solid #ddaf7466;
  background:none;box-shadow:inset 0 0 0 2px #28190f8a,0 0 0 1px #362119;
}
.gui-frame--royal::after{
  inset:-8px;
  background:
    radial-gradient(circle,#7cd4c1 0 2px,#4a2718 3px 4px,#c99459 5px 6px,#442819 7px 8px,transparent 9px) left top/18px 18px,
    radial-gradient(circle,#7cd4c1 0 2px,#4a2718 3px 4px,#c99459 5px 6px,#442819 7px 8px,transparent 9px) right top/18px 18px,
    radial-gradient(circle,#7cd4c1 0 2px,#4a2718 3px 4px,#c99459 5px 6px,#442819 7px 8px,transparent 9px) left bottom/18px 18px,
    radial-gradient(circle,#7cd4c1 0 2px,#4a2718 3px 4px,#c99459 5px 6px,#442819 7px 8px,transparent 9px) right bottom/18px 18px;
  background-repeat:no-repeat;
}
.gui-frame--royal .gui-frame-gem{display:none}
.gui-frame--royal .gui-input{
  background:linear-gradient(#100b08,#18110c);border:1px solid #775634;color:#faead4;box-shadow:inset 0 2px 6px #0008;
}
.gui-frame--royal .gui-input:focus{border-color:#cda36a}
.gui-frame--royal .gui-button{
  color:#edcd99;background:linear-gradient(#3d2d22,#201811);border-color:#795838;
}
.gui-frame--royal .gui-button--primary{
  color:#fff1d8;background:linear-gradient(#a84434,#76251c 53%,#541812);border-color:#be8459;text-shadow:0 2px #43160f;
}

.gui-frame--royal .gui-button--tab{
  background:transparent;border:0;border-bottom:1px solid #61472d;box-shadow:none;color:#bea98d;letter-spacing:.06em;
}
.gui-frame--royal .gui-button--tab[aria-pressed=true]{border-color:#63c8b5;color:#f4d08d;text-shadow:none}
.gui-frame--royal .gui-button--tab[aria-pressed=true]::after{display:none}

.gui-wordmark{
  margin:0;width:max-content;max-width:96vw;text-align:center;
  color:#f8eed9;font:900 clamp(3.7rem,14vw,9.25rem)/.79 Alegreya,Georgia,serif;
  text-transform:uppercase;letter-spacing:.075em;
}
.gui-wordmark-title{
  display:block;padding-left:.075em;font:inherit;letter-spacing:inherit;
  color:#f8eed9;text-shadow:0 4px #624127,0 8px 17px #160d09c4;
}
.gui-wordmark-subtitle{
  display:flex;align-items:center;justify-content:center;gap:1.1em;
  margin:.88em auto 0;color:#f0dab5;
  font:800 .18em/1 Alegreya,Georgia,serif;letter-spacing:.5em;
  text-shadow:0 2px 5px #160d09;
}
.gui-wordmark-runes{
  display:block;margin-bottom:1.05em;color:#70dacc;
  font:700 .20em/1.15 "Segoe UI Historic","Noto Sans Old Turkic",serif;
  letter-spacing:.25em;text-shadow:0 2px 8px #142825;
}
.gui-wordmark-subtitle i{
  position:relative;width:clamp(28px,7vw,90px);height:2px;
  background:linear-gradient(90deg,transparent,#bd925e);
}
.gui-wordmark-subtitle i:last-child{transform:scaleX(-1)}
.gui-wordmark-subtitle i::after{
  content:"";position:absolute;right:0;top:50%;width:5px;height:5px;
  transform:translateY(-50%) rotate(45deg);background:#d3a66b;
  outline:1px solid #39271a;
}
.gui-password .gui-input{padding-right:3rem}
.gui-password .gui-password-toggle{
  display:grid;place-items:center;right:5px;top:3px;bottom:3px;width:38px;padding:0;
  border:0;background:transparent;box-shadow:none;color:#d9b885;
}
.gui-eye{position:relative;width:16px;height:16px;border:1.5px solid currentColor;border-radius:75% 19%;transform:rotate(45deg)}
.gui-eye::before{content:"";position:absolute;inset:4px;border-radius:50%;background:currentColor}
.gui-password-toggle[aria-pressed=true] .gui-eye::after{
  content:"";position:absolute;width:20px;height:1.5px;left:-3px;top:6px;background:currentColor;box-shadow:0 1px #21130e;transform:rotate(90deg)
}
.asena-lockup{margin:0;width:min(100%,450px)}.asena-lockup img{display:block;width:100%;height:auto}

/* Static finishes keep hover, focus and selection easy to tell apart. */
.gui-frame::after{filter:none}


.gui-button--primary{background:linear-gradient(#a34737,#78291f 55%,#5d2017);border-color:#be8459;color:#fff0d6;text-shadow:0 1px #471810}

.gui-choice{
  cursor:pointer;color:#e8d4b5;position:relative;
}

.gui-choice[aria-pressed=true]{outline:2px solid #9ec9aa;outline-offset:2px}
.gui-choice:focus-visible{outline:2px solid #f3dba1;outline-offset:4px}
.gui-choice[aria-pressed=true] .character-card-title strong{color:#f8e4bb}

.gui-button--skill{white-space:pre-line;padding:.35rem;font-size:clamp(.65rem,1.4vw,.9rem);max-width:19vw}
.gui-button--skill:disabled{background:#171a17;color:#bdb7a6;border-color:#60513b}
@media(prefers-reduced-motion:reduce){.gui-button,.gui-slot,.gui-choice{transition:none}}

.gui-badge,.gui-notice{display:inline-block;color:#f0d7a9;background:#1a140ff0;border:1px solid #876641;padding:.24rem .55rem}
.gui-badge{font:600 .8rem system-ui}
.gui-notice{font:600 .95rem Georgia,serif;line-height:1.4}
.gui-portrait{display:block;width:58px;height:70px;object-fit:contain;border:1px solid #8a6841;background:radial-gradient(#50402e,#17110d)}
.gui-skill-slot{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.15rem .38rem;min-width:0;text-align:left}
.gui-skill-slot kbd{grid-row:span 2;color:#f9dc9e;border:1px solid #745e40;background:#15140f;padding:.12rem .23rem}
.gui-skill-slot strong,.gui-skill-slot small{line-height:1.14}
.gui-skill-slot small{color:#b1dfc6}
.gui-skill-slot[data-state=locked] small{color:#baa78c}
.gui-skill-slot[data-state=cooldown] small{color:#d2b081}
.gui-skill-slot[data-state=ready]{border-color:#a78754}

:root{
  --gui-slate-art:url(/gui/materials/slate.webp);
  --gui-frame-art:url(/gui/materials/frame.webp);
  --gui-button-art:url(/gui/materials/button.webp);
  --gui-primary-art:url(/gui/materials/button-primary.webp);
  --gui-close-art:url(/gui/materials/close.webp);
  --gui-minimize-art:url(/gui/materials/minimize.webp);
}
.gui-frame,.gui-frame--royal{
  border:1px solid #7a5e36;
  background-image:linear-gradient(180deg,#16130f68,#0e0d0bc0),var(--gui-slate-art);
  background-size:auto,220px auto;
  box-shadow:0 6px 20px #000a,inset 0 0 18px #0008;
}
.gui-frame::before,.gui-frame--royal::before{
  position:absolute;inset:-4px;z-index:2;pointer-events:none;
  border:clamp(9px,1.6vw,19px) solid transparent;
  border-image:var(--gui-frame-art) 84 stretch;
  background:none;box-shadow:none;
}
.gui-frame::after,.gui-frame--royal::after{display:none}
.gui-frame--royal .gui-frame-gem{display:none}
.gui-button,.gui-frame--royal .gui-button,.gui-slot{
  background:var(--gui-button-art) center/100% 100% no-repeat;
  border-color:transparent;color:#f4ddb3;box-shadow:none;text-shadow:0 1px 3px #000
}
.gui-button--primary,.gui-frame--royal .gui-button--primary{
  background:var(--gui-primary-art) center/100% 100% no-repeat;color:#fff1d6;text-shadow:0 1px 3px #3b100c
}
.gui-frame--royal .gui-button--tab,.gui-button--tab{
  background:var(--gui-button-art) center/100% 100% no-repeat;border:1px solid transparent
}
.gui-frame--royal .gui-button--tab[aria-pressed=true],.gui-button--tab[aria-pressed=true]{border-color:#79bbaa;color:#ffe8b9}
.gui-password .gui-password-toggle,.gui-frame--royal .gui-password-toggle{
  background:transparent;border:0;box-shadow:none
}
.gui-frame .home-info-close,.gui-button--close{
  background:var(--gui-close-art) center/contain no-repeat;
  border:0;box-shadow:none;width:29px;height:29px;min-height:29px;padding:0;font-size:0
}
.gui-frame .chat-toggle{
  background:var(--gui-minimize-art) center/contain no-repeat;border:0;box-shadow:none
}
.gui-frame .chat-toggle[aria-expanded=false]{transform:rotate(180deg)}
.gui-frame .chat-toggle i{display:none}

.gui-medallion{
  display:grid;place-items:center;flex:none;
  background:var(--gui-button-art) center/100% 100% no-repeat;
  color:#9ddcca;font:700 1.25rem Georgia,serif;text-shadow:0 1px 3px #000
}
.gui-badge{background:var(--gui-badge-art,var(--gui-button-art)) center/100% 100% no-repeat}
.gui-button[aria-pressed=true],.gui-frame--royal .gui-button--tab[aria-pressed=true],
.gui-frame--royal .gui-button[data-state=current]{
  background:var(--gui-selected-art,var(--gui-button-art)) center/100% 100% no-repeat;
  border-color:transparent;color:#ffe7b4
}
.gui-frame--royal .gui-button[data-state=locked],.gui-button--locked{
  background:var(--gui-locked-art,var(--gui-button-art)) center/100% 100% no-repeat
}
.gui-slot[aria-pressed=true]{background:var(--gui-selected-art,var(--gui-button-art)) center/100% 100% no-repeat}
.gui-frame--royal .gui-button.gui-button--close{
  background:var(--gui-close-art) center/contain no-repeat;
  border:0;box-shadow:none;width:29px;height:29px;min-height:29px;padding:0;font-size:0
}

:root{
  --gui-selected-art:url(/gui/materials/button-selected.webp);
  --gui-locked-art:url(/gui/materials/button-locked.webp);
  --gui-badge-art:url(/gui/materials/badge.webp);
}
