* { box-sizing: border-box; }
:root {
  --navy: #071b34;
  --ink: #102746;
  --teal: #006d64;
  --mint: #40ead0;
  --gold: #ffbd3f;
  --paper: #f2f7fc;
  --line: #cbdbe8;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}
body { margin: 0; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; padding: 12px 0; }
.brand { display: block; flex: 0 1 295px; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
nav a { text-decoration: none; font-weight: 720; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.hero {
  background: radial-gradient(ellipse at 84% 90%, #006b65 0%, transparent 55%), linear-gradient(125deg, #07182e, #102e50);
  color: white;
}
.hero-layout { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(20px, 5vw, 75px); padding-block: clamp(42px, 7vw, 94px); }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 850; }
h1 { max-width: 12ch; font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -.063em; }
h1 em { color: var(--mint); font-style: normal; white-space: nowrap; }
.hero p { max-width: 41ch; margin: 18px 0 24px; font-size: clamp(1rem, 2vw, 1.23rem); color: #dceaf8; }
.photo {
  aspect-ratio: 1.4;
  border: 1px solid #5fe7d6;
  border-radius: 18px 80px 18px 18px;
  background: #143951 url(hero.jpg) center / cover;
  box-shadow: 10px 10px 0 -1px var(--gold);
}
.hero-visual { display: grid; gap: clamp(24px, 3vw, 34px); min-width: 0; }
.hero-game-mark {
  display: grid;
  justify-items: center;
  justify-self: center;
  gap: .7rem;
  width: min(100%, 400px);
  padding: clamp(10px, 2vw, 16px) clamp(12px, 3vw, 28px);
  border: 3px solid #ffcf61;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0, #75d6ff80, transparent 72%), linear-gradient(#197eb5, #103769);
  box-shadow: 0 5px #9a542a, 0 10px 24px #030b1d80, inset 0 0 0 3px #e76156, inset 0 0 0 5px #feac71;
  color: white;
  text-decoration: none;
}
.hero-game-mark:hover { border-color: #fff1a4; }
.hero-game-mark:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.hero-mark-art { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 24px); }
.hero-reticle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(56px, 9vw, 91px);
  aspect-ratio: 1;
  border: 2px solid #ffede4;
  border-radius: 50%;
  background: radial-gradient(circle, #287597, #123e6d 66%);
  box-shadow: inset 0 0 0 4px #ca514d, 0 0 14px #ffc77580;
}
.hero-reticle::before,
.hero-reticle::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, var(--gold) 0 14%, transparent 14% 86%, var(--gold) 86% 100%);
  width: calc(100% + 12px);
  height: 2px;
}
.hero-reticle::after { transform: rotate(90deg); }
.mira-mascot { display: block; object-fit: contain; filter: drop-shadow(2px 3px 2px #081727aa); }
.hero-question {
  color: #ffe680;
  font-size: clamp(2.05rem, 5.7vw, 3.85rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px #7c3a34, 0 4px #0a2038, 0 0 12px #ffca5e75;
}
.hero-logotype {
  display: grid;
  font-size: clamp(1.4rem, 3.5vw, 2.7rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: -1px -1px #11203c, 1px -1px #11203c, -1px 1px #11203c, 1px 1px #11203c, 0 4px #11203c;
  white-space: nowrap;
}
.hero-logotype > span { color: #ffdc62; }
.hero-logotype strong { color: #a4ed83; font-weight: inherit; }
.hero-logotype b { color: #ff8a7b; }
.hero-mark-play {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .85rem;
  border: 1px solid #fff4b0;
  border-radius: 99px;
  background: #ffcf61;
  color: #152441;
  font-size: clamp(.78rem, 2vw, 1rem);
  font-weight: 850;
}
.main-content { padding-block: clamp(25px, 4vw, 50px) 42px; }
.training-page .training-intro h1 { font-size: clamp(2rem, 5vw, 4.5rem); max-width: 22ch; }
.training-page .training-intro p { max-width: 64ch; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tracks article, .panel { border: 1px solid var(--line); border-radius: 18px; background: white; padding: clamp(17px, 3vw, 30px); }
.tracks article { display: flex; align-items: flex-start; gap: clamp(12px, 2vw, 22px); background: #e1faf3; border-color: #9bdacc; }
.tracks article + article { background: #fff3d6; border-color: #efd49a; }
.tracks h2, .panel h2 { font-size: clamp(1.52rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.tracks p { margin: 8px 0 16px; }
.symbol { display: grid; place-items: center; flex: none; width: clamp(40px, 6vw, 65px); aspect-ratio: 1; border-radius: 14px; background: var(--teal); color: white; font-size: clamp(1.35rem, 4vw, 2.65rem); font-weight: 800; line-height: 1; }
.tracks article + article .symbol { background: var(--gold); color: var(--navy); }
button, .button { cursor: pointer; border: 1px solid transparent; border-radius: 9px; background: var(--teal); color: white; font: inherit; font-weight: 750; padding: .57rem .85rem; }
.button { display: inline-block; text-decoration: none; }
button:hover, .button:hover { background: #00544e; }
.hero-action { background: var(--gold); color: var(--navy); padding: .78rem 1.15rem; }
.hero-action:hover { background: #ffcf70; }
.areas { margin-block: 30px; }
.areas > h2 { margin-bottom: 20px; }
#career-select { margin-left: 6px; }
.career-profile { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.career-profile h3 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.career-profile h4 { margin-bottom: 8px; }
.career-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 10px; }
.career-facts div { padding: 12px; border-radius: 10px; background: var(--paper); }
.career-facts dt { font-weight: 750; }
.career-facts dd { margin: 4px 0 0; }
.career-docs { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; }
.enem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; margin-block: 18px; }
.enem-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f6fbff; }
.enem-grid h3 { margin-bottom: 12px; }
.subject-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#essay { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #8399ae; border-radius: 8px; color: inherit; font: inherit; resize: vertical; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-bottom: 18px; }
.area-grid article { display: flex; flex-direction: column; align-items: flex-start; min-height: 172px; padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 12px; background: #f6fbff; }
.area-grid article:has(small) { border-top-color: #dc931c; }
.area-grid h3 { font-size: 1.25rem; }
.area-grid p { margin: 8px 0 14px; color: #344b63; }
.area-grid button, .area-grid small { margin-top: auto; }
.area-grid small { color: #653d00; background: #fff0ca; padding: .25rem .48rem; border-radius: 5px; }
.details h2 { margin-bottom: 16px; }
.founder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-bottom: 18px; background: var(--navy); color: #fff; }
.founder h3 { color: var(--mint); }
.founder p, .founder ul { margin: 12px 0 0; color: #dceaf8; }
.founder ul { padding-left: 1.2em; }
.founder li + li { margin-top: 6px; }
.support-prompt { margin-top: 16px; background: #e6f9f5; border-color: #abdcd2; }
.review-panel { margin-top: 16px; background: #f4faff; }
.review-heading { display: flex; gap: 12px; align-items: center; }
.review-heading h2 { font-size: clamp(1.12rem, 4vw, 1.55rem); }
.review-avatar { flex: 0 0 56px; height: 56px; border: 2px solid #70d4c5; border-radius: 50%; background: #e6f9f5 url(hero.jpg) 67% 3% / 330% auto; }
.review-card { overflow-wrap: anywhere; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.review-card p { margin: 8px 0; }
.review-card summary { color: var(--teal); font-weight: 700; cursor: pointer; }
.review-finish { margin-top: 12px; }
.admin-title { margin-top: 16px; font-size: clamp(1.7rem, 5vw, 3rem); }
.privacy-page { max-width: 76ch; margin-inline: auto; }
.privacy-page h2 { margin-top: 24px; }
#ranking-search { margin-top: 14px; align-items: center; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #9b5100; outline-offset: 3px; }
.hero :focus-visible { outline-color: white; }
input, select { max-width: 100%; padding: .55rem; border: 1px solid #8399ae; border-radius: 8px; background: white; color: inherit; font: inherit; }
label[for=pix] { display: block; }
#pix { margin: 5px 0 8px; width: 100%; }
.support-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-actions > * { display: inline-flex; align-items: center; gap: 8px; }
.payment-icon { display: grid; place-items: center; flex: none; width: 25px; height: 25px; background: white; border-radius: 5px; }
.payment-icon svg { width: 19px; height: 19px; }
#copy-status:empty { margin: 0; }
footer { background: var(--navy); color: #dceaf8; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-block: 18px; }
dialog { width: min(650px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 18px; background: #fff; color: inherit; padding: clamp(16px, 4vw, 32px); }
dialog::backdrop { background: #071b34ad; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.secondary { color: #00544e; background: #dcf5ee; }
.secondary:hover { background: #bdece0; }
fieldset { display: grid; gap: 8px; padding: 0; border: 0; margin: 0 0 16px; }
legend { font-weight: 800; margin-bottom: 12px; }
.option { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; }
.option:has(:checked) { border-color: var(--teal); background: #e1faf3; }
.result { padding: 12px; background: #e1faf3; border-radius: 10px; }
#save-score { display: grid; gap: 10px; justify-items: start; }
.practice-options { display: grid; gap: 9px; justify-items: start; }
.practice-options select { width: min(100%, 260px); }
@media (max-width: 810px) {
  .header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand { flex: auto; width: min(100%, 255px); }
  .hero-layout { gap: 24px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 4px 13px; font-size: .9rem; }
  .hero-layout, .tracks, .founder { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 1.85; margin-right: 8px; border-top-right-radius: 48px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
