/* Orvandel Online - fragments of the game's own interface, built in HTML (never a screenshot of a window).
   Loaded after orvandel.css by the pages that show one (the home, /download). */
/* =====================================================================================================================
   fragments of the game's own interface (data-ui), built here instead of a screenshot of a window. Inside them the
   game's conventions hold: its colours, corners, hairlines and faces (ui_skin.gd, hero_create.gd,
   profession_window.gd, modal_window.gd of the client): Inter for the words, Cinzel Bold for the titles of the panel.
   ================================================================================================================== */
@font-face { font-family: 'Inter'; src: url('/fonts/Inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/Cinzel-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
.ui { --u-window: #171a1f; --u-title: #1d2128; --u-line: #2a2f37; --u-line-2: #363c46; --u-well: #0b0d10; --u-raised: #232831; --u-text: #e4e7eb; --u-text-2: #9aa3ae; --u-text-3: #7c8590; --u-accent: #f2a93b; --u-gold: #f2b847; --u-dim: #9e9687;
  font: 500 0.9375rem/1.3 'Inter', system-ui, sans-serif; color: var(--u-text); text-align: left; }
.ui fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ui :focus-visible, .ui input:focus-visible + span, .ui input:focus-visible + img, .ui input:focus-visible + .ui-medalha__in { outline: 2px solid rgb(255 255 255 / 0.7); outline-offset: 2px; }
.ui-botao { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.1rem; background: var(--u-raised); border: 1px solid var(--u-line); border-radius: 6px; color: var(--u-text); font: 600 1rem/1 'Inter', system-ui, sans-serif; text-decoration: none; transition: background-color 180ms ease; }
.ui-botao--principal { background: #855d20; border-color: #e6a138; }
@media (hover: hover) and (pointer: fine) { a.ui-botao--principal:hover { background: #a9762a; } }

/* the panel "Create your hero" */
.ui-criar { display: grid; gap: 0.95rem; width: min(100%, 27.5rem); margin-top: 0.75rem; padding: 1.1rem 1.75rem 1.5rem; background: #0d0e12; border: 1px solid rgb(217 158 56 / 0.45); border-radius: 12px; }
.ui-criar[hidden] { display: none; }
.ui-criar__titulo { position: relative; padding-bottom: 0.7rem; text-align: center; font: 700 1.5rem/1.2 'Cinzel', Georgia, serif; color: #f5d180; }
.ui-criar__titulo::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 0; height: 1px; background: rgb(242 184 71 / 0.35); } /* taste-skill-ignore: the game's own gold line under the title of its panel */
.ui-criar legend, .ui-nome > span { display: block; padding: 0; margin-bottom: 0.4rem; font: 600 0.8125rem/1.2 'Inter', system-ui, sans-serif; color: var(--u-dim); letter-spacing: 0; }
.ui-criar legend span { margin-left: 0.6em; }
.ui-op { position: relative; display: block; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
.ui-op input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ui-op > span { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; background: rgb(255 255 255 / 0.035); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 8px; font: 700 1.05rem/1 'Cinzel', Georgia, serif; color: #e0d6c2; transition: background-color 180ms ease, border-color 180ms ease; }
.ui-op input:checked + span { background: rgb(242 184 71 / 0.2); border: 2px solid rgb(242 184 71 / 0.95); color: #ffebb8; }
.ui-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-rostos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ui-op--rosto img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; padding: 3px; background: rgb(255 255 255 / 0.035); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 8px; transition: border-color 180ms ease; }
.ui-op--rosto input:checked + img { background: rgb(242 184 71 / 0.2); border: 2px solid rgb(242 184 71 / 0.95); padding: 2px; }
.ui-cabelo { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: 8px; }
.ui-poco { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; background: #050608; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 8px; font: 700 1.05rem/1 'Cinzel', Georgia, serif; color: #ffebb8; }
.ui-poco img { position: absolute; left: 6px; top: 50%; width: 2.1rem; height: 2.1rem; translate: 0 -50%; }
.ui-cores { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); row-gap: 2px; }
.ui-cores--8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ui-cor { position: relative; display: grid; place-items: center; min-height: 2.75rem; cursor: pointer; }
.ui-cor input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ui-cor span:not(.sr) { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18); }
.ui-cor input:checked + span { border: 2px solid var(--u-gold); }
.ui-cor input:disabled { cursor: not-allowed; }
.ui-cor input:disabled:not(:checked) + span { opacity: 0.38; }
.ui-nome input { width: 100%; min-height: 3rem; padding: 0.5rem 0.75rem; background: #050608; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 8px; color: #fff2d9; font: 600 1.125rem/1.2 'Inter', system-ui, sans-serif; caret-color: var(--u-gold); }
.ui-nome input::placeholder { color: #8c8578; opacity: 1; }
.ui-nome input:focus-visible { outline: 0; border-color: rgb(242 184 71 / 0.85); }
.ui-nota { margin-top: -0.55rem; min-height: 1.2rem; font: 600 0.875rem/1.3 'Inter', system-ui, sans-serif; color: var(--u-dim); }
.ui-nota--boa { color: #b8db99; }
.ui-nota--ruim { color: #f28c73; }
@media (hover: hover) and (pointer: fine) { .ui-op:hover input:not(:checked) + span, .ui-op:hover > span:first-child { background: rgb(255 255 255 / 0.08); } .ui-cor:hover input:not(:disabled):not(:checked) + span { border-color: rgb(255 255 255 / 0.5); } }

/* the window "Gathering Profession" */
.ui-janela { max-width: 73.75rem; background: var(--u-window); border: 1px solid var(--u-line-2); border-radius: 8px; overflow: clip; }
.ui-janela__barra { display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0.4rem 0.3rem 0.75rem; background: var(--u-title); border-bottom: 1px solid var(--u-line); font: 600 0.8125rem/1.2 'Inter', system-ui, sans-serif; } /* taste-skill-ignore: the title bar of the game's window */
.ui-janela__x { display: grid; place-items: center; width: 1.6rem; height: 1.25rem; background: var(--u-raised); border: 1px solid var(--u-line); border-radius: 4px; font-size: 0.8125rem; color: var(--u-text-2); }
.ui-medalhas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 0.5rem 0.6rem; }
.ui-medalha { position: relative; cursor: pointer; }
.ui-medalha input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ui-medalha__in { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 0.5rem; align-items: center; min-height: 2.75rem; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 6px; color: var(--u-text-2); transition: background-color 180ms ease; }
.ui-medalha__in svg { grid-row: 1 / 3; width: 1.75rem; height: 1.75rem; }
.ui-medalha__in svg circle { fill: var(--u-well); stroke: var(--u-line); stroke-width: 1.5; }
.ui-medalha__in b { font-weight: 600; font-size: 0.875rem; }
.ui-medalha__in small { font-size: 0.8125rem; color: var(--u-text-2); }
.ui-medalha input:checked + .ui-medalha__in { background: var(--u-raised); border-color: var(--u-line-2); color: var(--u-text); }
.ui-medalha input:checked + .ui-medalha__in svg circle { stroke: var(--u-line-2); }
.ui-oficio { display: none; }
.ui-prof:has(input[value='1']:checked) [data-oficio='1'], .ui-prof:has(input[value='2']:checked) [data-oficio='2'], .ui-prof:has(input[value='3']:checked) [data-oficio='3'],
.ui-prof:has(input[value='4']:checked) [data-oficio='4'], .ui-prof:has(input[value='5']:checked) [data-oficio='5'], .ui-prof:has(input[value='6']:checked) [data-oficio='6'] { display: block; }
.ui-caminho { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0.6rem; padding: 1.5rem 0.75rem; background: var(--u-well); border: 1px solid var(--u-line); border-radius: 6px; }
.ui-estacao { display: grid; justify-items: center; align-content: start; gap: 0.6rem; text-align: center; }
.ui-placa { display: grid; justify-items: center; gap: 0.25rem; }
.ui-placa span { font: 600 0.8125rem/1.2 'Inter', system-ui, sans-serif; color: var(--u-accent); }
.ui-placa b { padding: 0.1rem 0.6rem; background: var(--u-window); border: 1px solid #7ed67e; border-radius: 4px; font: 600 0.8125rem/1.3 'Inter', system-ui, sans-serif; color: #7ed67e; }
.ui-estacao__nos { display: flex; justify-content: center; flex-wrap: wrap; min-height: 5rem; }
.ui-estacao__nos img { width: 5rem; height: 5rem; }
.ui-estacao__nos img:nth-child(n + 2) { margin-left: -1.5rem; }
.ui-estacao__nomes { min-height: 2.2em; font-size: 0.8125rem; color: var(--u-text-2); text-wrap: balance; }
.ui-pedestal { display: grid; justify-items: center; gap: 0.15rem; margin-top: 0.4rem; padding: 0.5rem 0.9rem 0.6rem; min-width: 6.5rem; background: var(--u-window); border: 1px solid var(--u-line); border-radius: 6px; }
.ui-pedestal img { width: 3.25rem; height: 3.25rem; }
.ui-pedestal span { font-size: 0.8125rem; color: var(--u-text-2); }
.ui-pedestal b { font: 600 0.875rem/1.2 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.ui-estacao--longe .ui-placa span, .ui-estacao--longe .ui-pedestal b { color: var(--u-text-3); }
.ui-estacao--longe .ui-placa b { border-color: var(--u-line-2); color: var(--u-text-3); }
.ui-estacao--longe img { filter: brightness(0.55) saturate(0.7); }
.ui-linha { display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; align-items: center; column-gap: 1.25rem; padding: 0.9rem 1rem 1rem; }
.ui-linha p { display: grid; gap: 0.3rem; }
.ui-linha__nome b { font: 700 1.375rem/1.1 'Inter', system-ui, sans-serif; }
.ui-linha__nome span { font: 600 0.8125rem/1.2 'Inter', system-ui, sans-serif; color: var(--u-text-3); }
.ui-linha__meio b { font: 600 0.875rem/1.3 'Inter', system-ui, sans-serif; white-space: pre-wrap; }
.ui-linha__meio span { font-size: 0.8125rem; color: var(--u-text-3); white-space: pre-wrap; }
.ui-linha .ui-linha__jura { display: flex; min-height: 2.4rem; padding: 0 1.25rem; font-size: 0.875rem; white-space: pre; }
@media (hover: hover) and (pointer: fine) { .ui-medalha:hover input:not(:checked) + .ui-medalha__in { background: rgb(255 255 255 / 0.04); } }
.passagem__cabelo { display: flex; align-items: center; gap: 0.6rem; }
.passagem__cabelo[hidden] { display: none; }
.passagem__cabelo img { width: 2.75rem; height: 2.75rem; background: var(--papel-2); }
@media (max-width: 759px) {
  .ui-criar { padding: 1rem 1rem 1.25rem; }
  .ui-cores, .ui-cores--8 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ui-medalhas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-caminho { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; padding: 1.1rem 0.5rem; }
  .ui-estacao__nos img { width: 4rem; height: 4rem; }
  .ui-linha { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .ui-linha .ui-linha__jura { white-space: normal; text-align: center; }
  .campo--janela .campo__figura { padding-inline: 8px; aspect-ratio: auto; }
}

