/* Browser-native translation of mobile/lib/glass.dart. Blur stays on navigation only. */
:root {
  --ink: #202631;
  --muted: #697384;
  --line: #e1e7ef;
  --paper: #eff4f9;
  --control-ink: #3e536a;
  --control-muted: #697384;
  --control-primary: #315df5;
  --control-shadow: 0 3px 7px #334d841f, 0 1px 2px #334d840a;
  --control-focus: #6e91ce;
  --glass-surface: linear-gradient(135deg, #ffffffe0, #ffffff94);
  --glass-shadow: 0 6px 16px #395c890c, 0 1px 2px #395c8906;
}

/* Static washes supply the depth behind the translucent cards, without per-card blur. */
body { background: linear-gradient(135deg, #e2edfc, #f2f5fb 55%, #e3f1ed); }
.panel, .game-card, .event-card, .agenda-row, .calendar {
  background: var(--glass-surface);
  border: 1px solid #ffffffe6;
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
}
.game-card { transition: background-color 140ms ease, transform 140ms ease; }
.game-card:active { transform: scale(.985); background-color: #e2eaf3; }
.event-card .event-copy { background: #ffffff18; }
.empty { background: var(--glass-surface); border: 1px solid #ffffffc9; border-radius: 20px; padding: 28px 20px; }
.eyebrow { letter-spacing: .6px; color: #738395; font-weight: 500; }
.hero {
  border: 1px solid #ffffffdf;
  border-radius: 24px;
  box-shadow: 0 6px 18px #3f635614;
  background: #edf3ee;
}
.hero .scenery { opacity: 1; }
.hero:after { background: linear-gradient(90deg, #ffffffde, #f6f8ef7a); }
.hero h1 { color: #304c41; font-weight: 600; }
.hero-title { display: flex; flex-wrap: wrap; gap: 0; }
.hero-title span { white-space: nowrap; }
.hero p { color: #52685d; }
.hero .eyebrow { color: #5c7967; }
.notice { background: linear-gradient(135deg,#f9fbffb8,#edf4f7a6); border: 1px solid #ffffff9e; color: #647689; }
.avatar { background: linear-gradient(135deg,#eaf4ed,#cfe5db); color: #467c71; box-shadow: inset 0 1px 0 #ffffffb3; }

button, .button {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  min-height: 46px;
  padding: 11px 19px;
  gap: 8px;
  border: 1px solid #d2deefbf;
  border-radius: 14px;
  color: var(--control-ink);
  background: linear-gradient(180deg, #ffffffed, #ffffffbf 65%, #ecf1f7c9);
  box-shadow: var(--control-shadow), inset 0 1px 0 #fff, inset 0 -1px 0 #395c8908;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 120ms ease, color 140ms ease;
}

button svg, .button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Avoid inherited page-wide brightness filters changing text and artwork. */
a:hover, button:hover { filter: none; }
button:focus-visible, .button:focus-visible, .navigation a:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 4px;
}
button:not(:disabled):active, .button:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 1px 2px #334d8412, inset 0 1px 3px #2339581c;
}
button:disabled {
  opacity: .42;
  cursor: default;
  box-shadow: none;
  transform: none;
}
button[aria-busy="true"] { opacity: .78; cursor: progress; }
button[aria-busy="true"]::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: control-spin 700ms linear infinite;
}
@keyframes control-spin { to { transform: rotate(360deg); } }

.primary {
  color: #fff;
  background: linear-gradient(180deg, #ffffff30, #ffffff00 65%, #0c2e6408), var(--control-primary);
  border-color: #ffffff38;
  box-shadow: 0 3px 8px #334d8438, 0 1px 2px #334d8412, inset 0 1px 0 #ffffff30;
  font-weight: 600;
}
.quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--control-muted);
}
.danger {
  color: #984f48;
  border-color: #efdad6;
  background: #fbefed;
  box-shadow: none;
}
.button-label { min-width: 0; }

/* Main hero actions are slightly roomier than utility controls. */
.hero .actions { gap: 12px; }
.hero .actions > button, .hero .actions > .button {
  min-height: 48px;
  border-radius: 14px;
  padding: 11px 19px;
}
.hero .actions > .primary {
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(180deg,#fffffff5,#ffffffcf 65%,#edf3e9c9);
  border-color: #ffffffef;
  color: #355d4c;
  box-shadow: 0 3px 7px #405f4d30, inset 0 1px 0 #fff, inset 0 -1px 0 #405f4d0a;
}
.hero .actions > button[data-action="memo"] {
  background: linear-gradient(180deg,#f7faffed,#eaf1ffcf);
  color: #3f65a8;
  border-color: #ffffffd9;
  box-shadow: 0 3px 6px #334d841c, inset 0 1px 0 #ffffffed;
}
.action-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff16;
  box-shadow: inset 0 0 0 1px #ffffff0f;
}
.action-end svg { width: 15px; height: 15px; }

/* A segmented switch is one component, rather than a row of raised buttons. */
.filters.segmented {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid #ffffffba;
  background: #dbe5f073;
  border-radius: 16px;
}
.filters.segmented button {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #697b8f;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
}
.filters.segmented button.active {
  background: #fffffff2;
  border-color: #ffffffd9;
  color: #46669a;
  box-shadow: 0 2px 5px #395c891a, inset 0 1px 0 #fff;
  font-weight: 650;
}
.filters:not(.segmented) { gap: 8px; }
.filters:not(.segmented) button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 16px;
  background: transparent;
  color: #697384;
  box-shadow: none;
  font-size: 13px;
}
.filters:not(.segmented) button.active {
  color: #46669a;
  background: #eaf0ffcc;
  border-color: #ffffffd9;
  font-weight: 600;
}
.game-heading button[data-action="follow"] {
  min-width: 96px;
  border-radius: 14px;
}
.game-heading button[data-action="follow"]:not(.primary) {
  border-color: #ffffffd9;
  background: linear-gradient(135deg,#ffffffd9,#f0f5f1b3);
  color: #467c71;
  box-shadow: var(--glass-shadow);
}

.row-actions { gap: 7px; margin-top: 14px; }
.row-actions button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg,#ffffffd9,#f1f5fbbf);
  box-shadow: 0 2px 4px #395c8910;
  font-size: 12px;
}
.row-actions button svg { width: 15px; height: 15px; }
.row-actions button.quiet { background: transparent; color: #8b7e74; }
.section-head > button { min-height: 44px; border-radius: 14px; padding: 10px 15px; }
.pagination { gap: 22px; }
.pagination button { min-height: 44px; border-radius: 14px; padding: 10px 15px; }
.pagination small { font-variant-numeric: tabular-nums; }
.detail > .quiet { padding-left: 0; box-shadow: none; }

/* Date cells keep the same dimensions in every state. */
.calendar-layout > section { min-width: 0; }
.calendar-top button.icon-button, dialog .close {
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #ffffffe6;
  background: linear-gradient(135deg,#ffffffed,#f2f6f1a6);
  color: #64765c;
  box-shadow: 0 2px 5px #395c8912, inset 0 1px 0 #fff;
}
.calendar-top input {
  flex: 1;
  min-width: 0;
  max-width: 175px;
  border: 0;
  background: transparent;
  color: #43583c;
  font-weight: 600;
  text-align: center;
}
.days button {
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  letter-spacing: 0;
  font-weight: 450;
}
.days button.today { border-color: #d4dfc8; background: #f2f6eb; color: #47653d; }
.days button.selected { color: #fff; background: #597451; border-color: #597451; box-shadow: 0 3px 7px #3c5b3218; }
.days button:not(:disabled):active { transform: none; }

/* Settings are navigation rows with icons, not oversized form buttons. */
.settings { padding: 10px 22px; background: linear-gradient(135deg,#fbfdfbe0,#f0f5f194); border-radius: 18px; }
button.setting {
  min-height: 64px;
  padding: 13px 0;
  gap: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
}
button.setting + button.setting::before {
  content: "";
  position: absolute;
  height: 1px;
  left: 43px;
  right: 0;
  top: 0;
  background: #dce6e3a6;
}
.setting .setting-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex: none;
  background: transparent;
  color: #467c71;
}
.setting .button-label { flex: 1; color: inherit; }
.setting > .setting-chevron { width: 16px; height: 16px; color: #a9b39f; }
.setting.danger { color: #9b6c5c; }
.setting.danger .setting-icon { color: #a57d6a; background: #f5eee7; }
button.setting:active { transform: none; background: #edf2e675; box-shadow: none; }

dialog { padding-top: 32px; background: linear-gradient(135deg,#fdfefefa,#f4f8ffed), #f5f8ff; border: 1px solid #fff; box-shadow: 0 12px 40px #334d8428, inset 0 1px 0 #fff; }
dialog::backdrop { background: #31466447; }
dialog .close { top: 13px; right: 13px; background: #e5edf5ad; border-color: #ffffff80; }
dialog .close svg { width: 17px; height: 17px; }
.form-footer button.primary { min-height: 49px; border-radius: 14px; }
.welcome .legal-link { min-height: 0; letter-spacing: 0; box-shadow: none; border: 0; padding: 0; white-space: normal; }
.welcome .legal-link:active { transform: none; box-shadow: none; }
input:not([type="checkbox"]), select, textarea {
  background: #ffffffa6;
  border-color: #d2deed;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px #395c8905;
}
.searchbar input { background: #ffffffa6; border-radius: 14px; }
.searchbar svg { stroke: #75889e; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #7190d1;
  outline-offset: 2px;
}
input[type="checkbox"] { accent-color: #315df5; }

/* Keep the familiar four navigation destinations and their existing positions. */
.navigation {
  background: linear-gradient(135deg,#fffffff0,#f7fbfff0);
  border: 1px solid #ffffffe6;
  border-radius: 24px;
  box-shadow: 0 6px 16px #395c8914, 0 1px 2px #395c8906, inset 0 1px 0 #fff;
}
.navigation a { color: #697384; transition: color 140ms ease; }
.nav-icon { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 16px; transition: background-color 140ms ease, transform 140ms ease; }
.navigation a[aria-current="page"] { background: transparent; color: #315df5; box-shadow: none; }
.navigation a[aria-current="page"] .nav-icon { background: linear-gradient(180deg,#e7efffe6,#dce8ffc9); box-shadow: inset 0 1px 0 #ffffffbd, 0 1px 2px #395c8908; }
.navigation a:active { background: transparent; }
.navigation a:active .nav-icon { transform: scale(.94); background-color: #d7e4f2; }
.navigation svg { width: 23px; height: 23px; stroke-width: 1.7; }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .navigation { background: linear-gradient(135deg,#ffffffe0,#ffffff94); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); }
}

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover, .button:hover { background-color: #fff; box-shadow: 0 4px 10px #395c891a; }
  .primary:not(:disabled):hover { background-color: #244ed8; box-shadow: 0 5px 12px #334d8433; }
  .hero .primary:not(:disabled):hover { background-color: #fff; box-shadow: 0 5px 12px #405f4d30; }
  .quiet:not(:disabled):hover { background-color: #eaf0e3; box-shadow: none; }
  .filters button:not(:disabled):hover { background-color: #f0f5fb; box-shadow: none; }
  .filters.segmented button.active:hover { background-color: #fff; }
  button.setting:hover { background: #f1f5ea80; box-shadow: none; }
  .days button:not(.selected):hover { background: #eef3e6; box-shadow: none; }
  .days button.selected:hover { background: #4c6845; }
  .danger:not(:disabled):hover { background: #f7e7e2; box-shadow: none; }
  .welcome .legal-link:hover { background: none; box-shadow: none; text-decoration-thickness: 2px; }
}
@media (max-width: 650px) {
  .hero .actions > button, .hero .actions > .button { font-size: 13px; padding-left: 16px; padding-right: 16px; }
  .hero .actions > .primary { padding-right: 16px; gap: 8px; }
  .hero .actions { gap: 10px; }
  .filters.segmented button { padding: 9px 15px; }
  .settings { padding: 8px 18px; }
  .section-head > button { font-size: 13px; }
  .game-heading { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .game-heading .game-icon { width: 52px; height: 52px; }
  .game-heading .copy { min-width: 0; }
  .game-heading h1 { font-size: 20px; }
  .game-heading p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .game-heading button[data-action="follow"] { min-width: 80px; padding: 9px 11px; gap: 5px; font-size: 12px; }
  .game-heading button[data-action="follow"] svg { width: 15px; height: 15px; }
  .hero { min-height: 265px; padding: 26px 22px; }
  .hero h1 { font-size: 24px; max-width: 100%; line-height: 1.5; letter-spacing: 0; }
  .hero .eyebrow { margin-bottom: 18px; font-size: 12px; }
  .hero p { max-width: 100%; }
  .calendar-hero { min-height: 150px; }
  .calendar-hero h1 { font-size: 23px; }
  .section-head { margin-top: 24px; }
}
@media (max-width: 899px) {
  .navigation { bottom: max(10px, env(safe-area-inset-bottom)); width: min(500px, calc(100% - 24px)); padding: 5px 7px; }
  .navigation a { flex-direction: column; padding: 5px 4px; gap: 4px; font-size: 12px; font-weight: 500; }
  .navigation a[aria-current="page"] { font-weight: 600; }
}
@media (min-width: 900px) {
  .navigation { padding: 4px 6px; border-radius: 20px; }
  .navigation a { padding: 8px 6px; gap: 5px; }
  .nav-icon { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button, .navigation a, .nav-icon, .game-card { transition: none; }
  button[aria-busy="true"]::after { animation: none; }
  button:not(:disabled):active, .button:active { transform: none; }
  .navigation { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f7fafff5; }
  .navigation a:active .nav-icon, .game-card:active { transform: none; }
}

/* Registration verification keeps controls separate on narrow screens. */
.verification-actions { margin-top: 12px; }
.mail-status:empty { display: none; }
#auth-form input[readonly] { opacity: .7; }
