:root {
  font-family: var(--page-font, Inter, Arial, sans-serif);
  color: var(--main-text, #ecf0f7);
  background: var(--page-background, #10151e);
  font-synthesis: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: var(--page-width, 1180px);
  margin: auto;
}
header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b3341;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 750;
  color: inherit;
  text-decoration: none;
}
.mark {
  font-size: 24px;
  border: 1px solid #768479;
  border-radius: 12px;
  padding: 9px 8px;
  letter-spacing: -1px;
  color: var(--accent-color, #bcf391);
}
.mark span {
  font-size: 16px;
}
.tag {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #a4aebc;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color, #bcf391);
  border-radius: 50%;
}
.intro {
  margin: 45px 0 32px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  color: var(--accent-color, #bcf391);
}
h1 {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 1.9px;
  margin: 15px 0;
}
p {
  line-height: 1.6;
  color: var(--paragraph-text, #aeb8c6);
}
.intro > p:last-child {
  margin: 0;
  font-size: 17px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 1fr);
  gap: 24px;
}
.capture,
.result-panel {
  border: 1px solid var(--panel-border, #303a48);
  background: var(--panel-background, #171e29);
  border-radius: var(--panel-corners, 18px);
  overflow: hidden;
}
.section-head {
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-border, #303a48);
  gap: 12px;
}
h2 {
  font-size: 14px;
  font-weight: 400;
  color: #8390a2;
  margin: 0;
}
h2 span {
  color: #edf1f7;
  font-size: 16px;
  font-weight: 550;
  margin-left: 12px;
}
#camera-status {
  font-size: 12px;
  color: #9ba8b9;
}
.viewfinder {
  height: 320px;
  margin: 20px 20px 0;
  background: radial-gradient(ellipse at center, #25313c, #111822 75%);
  border: 1px solid #3b4756;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.viewfinder video,
.viewfinder img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.viewfinder video {
  transform: scaleX(-1);
}
.empty {
  text-align: center;
}
.face-outline {
  width: 112px;
  height: 143px;
  border: 1px solid #758473;
  border-radius: 48% 48% 45% 45%;
  margin: auto;
  color: #b2c4ac;
  position: relative;
}
.eyes {
  font-size: 35px;
  margin-top: 38px;
}
.mouth {
  width: 23px;
  height: 10px;
  border-bottom: 1px solid #b2c4ac;
  border-radius: 50%;
  margin: 10px auto;
}
.empty p {
  color: #d0d8e2;
  font-size: 15px;
  margin: 17px 0 5px;
}
.empty > span {
  color: #8190a3;
  font-size: 13px;
}
.camera-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: #10151ed9;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #a4b4a0;
}
.live-guide {
  position: absolute;
  width: 45%;
  height: 77%;
  border: 1px dashed #bcf3919c;
  border-radius: 45%;
  pointer-events: none;
}
.controls {
  padding: 22px;
}
.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  line-height: 1.55;
  font-size: 14px;
  color: #bec8d4;
}
input[type="checkbox"] {
  accent-color: var(--accent-color, #bcf391);
  width: 18px;
  height: 18px;
  margin: 2px 0;
  flex-shrink: 0;
}
.buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0 18px;
  flex-wrap: wrap;
}
button {
  border: 0;
  background: var(--accent-color, #bcf391);
  color: var(--button-text, #15200f);
  border-radius: 9px;
  min-height: 48px;
  padding: 12px 20px;
  font: 600 15px var(--page-font, Inter, Arial, sans-serif);
  cursor: pointer;
  flex: 1;
}
button span {
  float: right;
  margin-left: 20px;
}
button:hover {
  background: var(--button-hover, #d1ffaf);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.secondary {
  background: #283240;
  color: #e3eaf3;
  flex: 0 1 auto;
}
.secondary:hover {
  background: #344152;
}
.notice {
  font-size: 13px;
  margin: 15px 0 0;
  min-height: 20px;
}
.notice.error {
  color: #ffb9a8;
}
.result-panel {
  padding-bottom: 24px;
}
#result {
  padding: 32px 28px 22px;
  min-height: 308px;
}
.result-tag {
  color: #a5b2c2;
  background: #232d3b;
  border: 1px solid #394556;
  display: inline-block;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 1.1px;
}
.age {
  font-size: 72px;
  font-weight: 450;
  letter-spacing: -4px;
  margin: 22px 0 20px;
  line-height: 1;
}
.age > span {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 10px;
  color: #8f9eaf;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 12px 0 8px;
}
#result p {
  font-size: 14px;
  margin: 0;
}
.facts {
  margin: 0 28px;
  border-top: 1px solid var(--panel-border, #303a48);
  padding-top: 18px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 9px 0;
}
.facts dt {
  color: #92a1b4;
}
.facts dd {
  margin: 0;
  color: #d5dfeb;
}
.facts dd.amber {
  color: #f2ce8b;
}
.limitation {
  display: flex;
  gap: 13px;
  margin: 24px 25px 0;
  background: #252722;
  border: 1px solid #494b39;
  padding: 15px;
  border-radius: 9px;
}
.limitation > span {
  font-size: 16px;
  border: 1px solid #9b946c;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  flex-shrink: 0;
  color: #e1d8ab;
}
.limitation strong {
  font-size: 13px;
  color: #e1d8ab;
}
.limitation p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #b6b6a7;
}
details {
  margin: 25px 0;
  color: #a7b5c7;
  font-size: 14px;
  max-width: 860px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
  color: #d1d9e4;
}
details p {
  margin: 6px 0 12px;
}
footer {
  margin-top: 35px;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #748397;
  border-top: 1px solid #2b3341;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent-color, #bcf391);
  outline-offset: 4px;
}
@media (max-width: 1240px) {
  header,
  main,
  footer {
    margin-left: 28px;
    margin-right: 28px;
  }
}
@media (max-width: 760px) {
  header {
    height: 80px;
  }
  .tag {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .intro {
    margin-top: 30px;
  }
  header,
  main,
  footer {
    margin-left: 16px;
    margin-right: 16px;
  }
  .intro > p:last-child {
    font-size: 15px;
  }
  .viewfinder {
    height: 300px;
  }
  .section-head {
    padding: 20px;
  }
  #result {
    min-height: 0;
  }
  .age {
    font-size: 64px;
  }
  footer {
    flex-direction: column;
    gap: 9px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .eyebrow {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
.location-check {
  margin: 20px 25px 0;
  border-top: 1px solid var(--panel-border, #303a48);
  padding-top: 15px;
}
.location-check h3 {
  font-size: 18px;
}
.location-check p {
  font-size: 14px;
  margin: 10px 0;
}
.location-check #location-privacy,
.location-check .location-limit {
  font-size: 12px;
  color: #a6b3c4;
}
.location-check button {
  width: 100%;
  margin: 5px 0;
}
.location-check #location-result {
  font-weight: 600;
  color: #e2e9f2;
}
.location-check #location-result[data-status="reported_in_eu"] {
  color: var(--accent-color, #bcf391);
}
.location-check #location-result[data-status="reported_outside_eu"] {
  color: #ffb9a8;
}

.saved-record {
  border: 1px solid #3b4756;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.saved-record h2 {
  font-size: 20px;
  color: var(--accent-color, #bcf391);
}
.saved-record img {
  display: block;
  max-width: 300px;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin: 12px 0;
}
.saved-record p {
  margin: 8px 0;
}
.saved-record button {
  margin-top: 12px;
}
