:root {
  --bg: #f6f8fb;
  --bg-accent: #eef4ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-dark: #102033;
  --text: #152033;
  --text-soft: #56657d;
  --text-muted: #74839a;
  --stroke: rgba(21, 32, 51, 0.1);
  --stroke-strong: rgba(21, 32, 51, 0.18);
  --brand: #2563eb;
  --brand-strong: #183fb8;
  --brand-soft: rgba(37, 99, 235, 0.12);
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --warm: #f97316;
  --warm-soft: rgba(249, 115, 22, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --success: #0f9f6e;
  --success-soft: rgba(15, 159, 110, 0.12);
  --shadow-lg: 0 32px 90px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100vw - 32px));
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fb 40%, #ffffff 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body.page-auth,
body.page-game {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 24%),
    linear-gradient(135deg, #081120 0%, #10233d 52%, #173867 100%);
  color: #eff4ff;
}

body.page-home,
body.page-about,
body.page-services,
body.page-blog,
body.page-post,
body.page-gallery,
body.page-chrome,
body.page-tool,
body.page-calcs {
  color: var(--text);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.shell--wide {
  width: min(1320px, calc(100vw - 24px));
}

.site-frame {
  padding-top: 108px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 20px 0 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
  padding: 14px 18px 14px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.12);
  border-radius: 26px;
  backdrop-filter: blur(18px);
}

body.page-auth .site-header__inner,
body.page-game .site-header__inner {
  background: rgba(10, 18, 35, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.brand__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

body.page-auth .brand__eyebrow,
body.page-auth .brand__title,
body.page-game .brand__eyebrow,
body.page-game .brand__title {
  color: #f8fbff;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__rail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link,
.site-nav__button,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.site-nav__link:hover,
.site-nav__button:hover,
.nav-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.brand:hover,
.brand:focus-visible,
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__button:hover,
.site-nav__button:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  animation: header-dance 480ms ease;
  transform-origin: center;
}

.site-nav__link.is-active,
.site-nav__button.is-active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.14);
  color: var(--brand-strong);
}

.site-nav__group {
  position: relative;
}

.site-nav__button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}

.site-nav__group.is-open .site-nav__button::after {
  transform: rotate(-135deg) translateY(-1px);
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-nav__group.is-open .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown a {
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  font-weight: 600;
}

.site-nav__dropdown a:hover,
.site-nav__dropdown a.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  border-color: var(--stroke);
  background: var(--surface-strong);
}

.section {
  padding: 32px 0;
}

.section + .section {
  padding-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

body.page-home .page-hero .eyebrow {
  background: rgba(251, 146, 60, 0.16);
  color: #ffbf75;
}

.hero,
.hero-shell,
.password-hero-shell,
.food-hero-shell,
.barcode-hero-shell {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 28%),
    linear-gradient(135deg, #091321 0%, #10263f 52%, #194a83 100%);
  color: #f8fbff;
  box-shadow: var(--shadow-lg);
}

.hero::before,
.hero-shell::before,
.password-hero-shell::before,
.food-hero-shell::before,
.barcode-hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.16);
  filter: blur(4px);
  pointer-events: none;
}

.hero h1,
.hero-shell h1,
.password-hero-shell h1,
.food-hero-shell h1,
.barcode-hero-shell h1 {
  margin: 16px 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p,
.hero-shell p,
.password-hero-shell p,
.food-hero-shell p,
.barcode-hero-shell p {
  margin: 0;
  color: rgba(248, 251, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.82;
}

.hero-badges,
.food-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-badges span,
.food-hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
}

.hero-note,
.food-hero-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-note h2,
.food-hero-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.32rem;
}

.hero-note ul,
.hero-note-list,
.food-hero-list,
.mini-list,
.support-list,
.footer-links,
.footer-service-list,
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-note ul,
.hero-note-list,
.food-hero-list,
.mini-list {
  display: grid;
  gap: 12px;
}

.hero-note li,
.hero-note-list li,
.food-hero-list li,
.mini-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hero-note li::before,
.hero-note-list li::before,
.food-hero-list li::before,
.mini-list li::before,
.footer-service-list li::before,
.footer-nav-list li::before,
.support-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.62rem;
  background: linear-gradient(135deg, #60a5fa, #f97316);
}

.surface,
.card,
.notice-card,
.profile-card,
.hub-card,
.tool-card,
.info-card,
.batch-card,
.card-shell,
.decision-card,
.course-item,
.auth-card,
.game-card,
.gallery-card,
.post-card,
.post-shell,
.blog-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

.notice-card,
.profile-card,
.hub-card,
.tool-card,
.info-card,
.batch-card,
.card-shell,
.decision-card,
.auth-card,
.game-card,
.blog-shell,
.post-shell {
  padding: 28px;
}

.surface + .surface,
.notice-card + .surface,
.profile-card + .surface,
.hub-card + .surface {
  margin-top: 22px;
}

.section-head,
.section-title,
.group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-strong), var(--warm));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.section-icon::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 58%);
}

.section-head h2,
.section-head h3,
.section-title h2,
.section-title h3,
.group-head h2,
.group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.section-copy,
.fine-print,
.footer-copy,
.post-meta,
.blog-meta,
.results-meta small {
  color: var(--text-soft);
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.gap-4 {
  gap: 24px;
}

.layout-col {
  grid-column: span 12;
  min-width: 0;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.u-flex {
  display: flex;
}

.u-inline-flex {
  display: inline-flex;
}

.u-items-center {
  align-items: center;
}

.u-items-start {
  align-items: flex-start;
}

.u-items-stretch {
  align-items: stretch;
}

.u-justify-center {
  justify-content: center;
}

.u-justify-between {
  justify-content: space-between;
}

.u-text-center {
  text-align: center;
}

.u-w-full {
  width: 100%;
}

.u-mb-0 {
  margin-bottom: 0;
}

.u-mb-3 {
  margin-bottom: 1rem;
}

.u-mb-4 {
  margin-bottom: 1.5rem;
}

.u-mt-1 {
  margin-top: 0.375rem;
}

.u-mt-3 {
  margin-top: 1rem;
}

.u-mt-4 {
  margin-top: 1.5rem;
}

.u-px-2 {
  padding-inline: 0.5rem;
}

.u-p-2 {
  padding: 0.5rem;
}

.ui-button,
.button,
.action-btn,
.secondary-btn,
.decision-btn,
.ghost-btn,
.add-btn,
.btn-main,
.btn-soft,
.btn-warm,
.footer-cta,
.btn-get-started,
.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 84%, white), var(--brand));
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ui-button:hover,
.button:hover,
.action-btn:hover,
.decision-btn:hover,
.add-btn:hover,
.btn-main:hover,
.footer-cta:hover,
.btn-get-started:hover,
.more-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
  opacity: 0.96;
}

.ui-button--secondary,
.ui-button--ghost,
.button-secondary,
.secondary-btn,
.ghost-btn,
.btn-soft,
.btn-warm {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(21, 32, 51, 0.12);
  box-shadow: none;
}

.ui-button--secondary:hover,
.ui-button--ghost:hover,
.button-secondary:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.btn-soft:hover,
.btn-warm:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--text);
}

.ui-button--small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.92rem;
}

.ui-button--block,
.button-block {
  width: 100%;
}

.ui-field,
.ui-select,
.field-input,
.field-select,
.input,
.select,
.area,
.decision-input,
.barcode-input,
.file-input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: none;
}

.area {
  min-height: 132px;
  resize: vertical;
}

.ui-field:focus,
.ui-select:focus,
.field-input:focus,
.field-select:focus,
.input:focus,
.select:focus,
.area:focus,
.decision-input:focus,
.barcode-input:focus,
.file-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ui-label,
.field-label,
.field label,
.form-row label,
.control-group label,
.group-head label,
.decision-card label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--text);
}

.field,
.form-row,
.control-group {
  margin-top: 16px;
}

.grid-2,
.profile-grid,
.control-grid,
.filter-grid,
.meta-grid,
.stats-grid,
.auth-grid,
.value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-grid,
.card-grid,
.hub-grid,
.post-grid,
.gallery-grid,
.auth-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.stat-card--link {
  position: relative;
  display: block;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.stat-card--link:hover,
.stat-card--link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.stat-card--link:hover .stat-card__value,
.stat-card--link:focus-visible .stat-card__value {
  color: var(--brand-strong);
}

.stat-card__value,
.counter-value {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}

.stat-card__label {
  color: var(--text-soft);
  font-weight: 700;
}

.news-ticker {
  margin: 18px auto 0;
  width: var(--shell);
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ticker-content {
  display: inline-flex;
  gap: 16px;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 0.92rem;
  animation: ticker 36s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes header-dance {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(-2px) rotate(-2deg);
  }

  60% {
    transform: translateY(-1px) rotate(2deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.site-footer {
  padding: 48px 0 36px;
}

.site-footer__panel,
.footer-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 23, 40, 0.96) 0%, rgba(20, 34, 58, 0.98) 100%);
  color: #eef4ff;
  box-shadow: 0 28px 72px rgba(8, 15, 30, 0.28);
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.5fr 1fr 0.85fr 0.85fr;
}

.footer-grid--compact {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: start;
}

.footer-grid > div:last-child {
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-kicker {
  margin: 0 0 8px;
  color: rgba(238, 244, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-contact-list,
.footer-service-list,
.footer-nav-list {
  display: grid;
  gap: 10px;
}

.footer-contact-list a,
.footer-nav-list a {
  color: rgba(238, 244, 255, 0.88);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(238, 244, 255, 0.66);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.social-links--icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.social-links--icons a {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 16px;
  font-size: 0;
}

.social-links.social-links--icons a::after {
  content: none !important;
}

.social-links.social-links--icons a svg {
  display: block;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.92);
  fill: currentColor;
  stroke: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.social-links a::after {
  content: "\2197";
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
}

.social-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.footer-grid > div:last-child .footer-copy {
  max-width: 26ch;
  margin-bottom: 0;
  color: rgba(238, 244, 255, 0.72);
  line-height: 1.75;
}

.footer-grid > div:last-child h4 {
  margin-bottom: 8px;
}

.footer-grid > div:last-child .footer-cta {
  width: 100%;
  margin-top: 18px;
  justify-content: space-between;
  padding-inline: 20px;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.footer-grid > div:last-child .footer-cta::after {
  content: "\2192";
  font-size: 1rem;
}

.footer-grid--compact > div:last-child .footer-copy {
  max-width: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(13, 23, 40, 0.88);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.back-to-top::before {
  content: "↑";
  font-size: 1.2rem;
  font-weight: 800;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-hero {
  padding: 12px 0 24px;
}

.page-title {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 1.05;
}

.lede {
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.85;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.gallery-strip > * {
  scroll-snap-align: start;
}

.gallery-frame {
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.gallery-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.auth-shell {
  min-height: calc(100vh - 170px);
  display: grid;
  align-items: center;
}

.auth-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-media {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 24, 45, 0.84), rgba(22, 60, 110, 0.62));
  box-shadow: var(--shadow-lg);
}

.auth-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-media__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.22) 0%, rgba(7, 13, 24, 0.72) 100%);
}

.auth-media__content {
  position: absolute;
  inset: auto 30px 30px;
  z-index: 1;
  color: #ffffff;
}

.auth-card {
  align-self: center;
  padding: 34px;
}

.auth-card h1,
.game-card h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.auth-card p {
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.auth-link {
  color: var(--brand);
  font-weight: 700;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-shell {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
}

.game-card {
  width: min(820px, 100%);
  padding: 34px;
}

.game-board {
  display: grid;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 0;
}

.game-board--ttt {
  grid-template-columns: repeat(3, minmax(96px, 120px));
}

.game-cell {
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--brand-strong);
}

.game-status {
  margin-top: 18px;
  color: var(--text-soft);
  text-align: center;
  font-weight: 700;
}

.guess-form,
.tool-stack {
  display: grid;
  gap: 14px;
}

.target-stage {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.click-target {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, #60a5fa, #f97316);
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.35);
}

.counter-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
}

.banner {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--transition);
}

.banner.active {
  opacity: 1;
}

.celebration {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(6, 12, 24, 0.82);
  z-index: 40;
}

.celebration.is-visible {
  display: grid;
}

.blog-hero,
.post-hero {
  padding: 10px 0 26px;
}

.blog-shell,
.post-shell {
  padding: 34px;
}

.blog-search {
  width: 100%;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--brand), var(--warm));
}

.post-card-body {
  padding: 24px;
  display: grid;
  gap: 12px;
  height: 100%;
}

.chip,
.post-chip,
.badge-pill,
.tag,
.local-badge,
.hero-kicker,
.password-kicker,
.food-eyebrow,
.barcode-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-home .hero-panel--dark .chip {
  background: rgba(52, 211, 153, 0.16);
  color: #b7f7dc;
}

.post-cover {
  width: 100%;
  border-radius: 22px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-md);
}

.post-body p,
.post-body li {
  color: var(--text-soft);
  line-height: 1.84;
}

.post-body h2,
.post-body h3 {
  margin-top: 1.8rem;
  color: var(--text);
}

.post-quote {
  margin: 1.6rem 0;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 18px 18px 0;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  font-weight: 700;
}

.course-item {
  overflow: hidden;
}

.course-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-content {
  padding: 22px;
}

.password-display,
.output,
.result-box {
  border-radius: 26px;
}

.password-display,
.output {
  padding: 22px;
  background: linear-gradient(135deg, #091321 0%, #163763 100%);
  color: #ffffff;
}

.password-display-top,
.output-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.generated-password,
.output-box {
  font-family: "Courier New", monospace;
  word-break: break-word;
}

.output-box,
.result-box {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  border: 1px solid var(--stroke);
  color: var(--text);
}

.status,
.status-text,
.results-meta,
.batch-summary {
  color: var(--text-soft);
}

.status.err {
  color: var(--danger);
}

.strength-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.08);
  overflow: hidden;
}

.strength-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warm), var(--success));
  transition: width var(--transition);
}

.chip-row,
.toolbar,
.actions,
.decision-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.value-list {
  display: grid;
  gap: 10px;
}

.value-item,
.inspect-item,
.meta,
.metric-card,
.hub-card__item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(21, 32, 51, 0.08);
  text-align: left;
}

th {
  color: var(--text);
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: rgba(21, 32, 51, 0.04);
  color: var(--text-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-grid,
.panel-grid,
.info-grid,
.step-grid,
.mosaic-grid {
  display: grid;
  gap: 24px;
}

.panel-grid,
.info-grid,
.mosaic-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.hero-copy,
.page-hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-copy p,
.page-hero-copy p {
  margin: 0;
  max-width: 64ch;
}

.hero-actions,
.page-actions,
.guess-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.page-home .hero-actions .ui-button--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.page-home .hero-actions .ui-button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-proof,
.hero-proof-list,
.check-list,
.bullet-list,
.timeline,
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-proof li,
.hero-proof-list li,
.check-list li,
.bullet-list li,
.timeline li,
.step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hero-proof li::before,
.hero-proof-list li::before,
.check-list li::before,
.bullet-list li::before,
.timeline li::before,
.step-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.55rem;
  background: linear-gradient(135deg, #60a5fa, #f97316);
}

.hero-panel,
.data-panel,
.overview-panel,
.timeline-panel,
.skill-panel,
.download-panel,
.gallery-lead,
.step-card,
.project-card,
.extension-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 252, 0.98) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
}

.hero-panel--dark,
.cta-panel {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 34%),
    linear-gradient(135deg, #0c1729 0%, #14335a 52%, #20518a 100%);
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-panel--dark p,
.cta-panel p,
.hero-panel--dark .section-copy {
  color: rgba(248, 251, 255, 0.8);
}

.hero-card-grid,
.value-cluster,
.skill-grid,
.project-grid,
.gallery-grid,
.step-grid,
.extension-grid {
  display: grid;
  gap: 20px;
}

.hero-card-grid,
.value-cluster,
.step-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.skill-grid,
.project-grid,
.gallery-grid,
.extension-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card,
.value-card,
.skill-card,
.project-card,
.gallery-card,
.step-card,
.extension-card {
  padding: 22px;
  border-radius: 24px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-card .stat-card__value,
.metric-card .counter-value {
  color: #ffffff;
}

.metric-card .stat-card__label {
  color: rgba(255, 255, 255, 0.74);
}

.metric-card strong,
.value-card strong,
.skill-card strong,
.step-card strong,
.extension-card strong,
.project-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.value-card,
.skill-card,
.gallery-card,
.step-card,
.extension-card {
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.value-card p,
.skill-card p,
.project-card p,
.extension-card p,
.step-card p,
.gallery-card p {
  margin: 0;
  color: var(--text-soft);
}

.timeline {
  gap: 18px;
}

.timeline li {
  position: relative;
  padding-left: 18px;
}

.timeline li::before {
  margin-top: 0.4rem;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 4px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(15, 118, 110, 0.16));
}

.timeline li:last-child::after {
  display: none;
}

.timeline h3,
.project-card h3,
.gallery-card h3,
.extension-card h3,
.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.meta-line,
.timeline-meta,
.card-meta,
.auth-intro,
.micro-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.split-card {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
}

.media-frame,
.photo-frame,
.step-image {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(21, 32, 51, 0.05);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.media-frame img,
.photo-frame img,
.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-grid .photo-frame {
  min-height: 220px;
}

.spotlight-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: var(--shadow-md);
}

.stat-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-row span,
.stat-pill,
.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-strong);
  font-weight: 700;
}

.soft-pill {
  background: rgba(21, 32, 51, 0.05);
  color: var(--text-soft);
}

.services-grid {
  align-items: stretch;
}

.service-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.quote-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.skill-card img,
.extension-card img,
.project-card img {
  width: auto;
  max-height: 48px;
  margin-bottom: 16px;
}

.project-card img,
.gallery-card img,
.step-image img {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 10;
}

.project-card img,
.gallery-card img {
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 16px;
}

.project-card a,
.extension-card a,
.gallery-card a {
  font-weight: 800;
}

.gallery-card {
  overflow: hidden;
  padding: 14px;
}

.gallery-card img {
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
}

.gallery-card__body {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
}

.step-card {
  display: grid;
  gap: 16px;
}

.step-card span,
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  color: #ffffff;
  font-weight: 800;
}

.step-image img {
  aspect-ratio: 16 / 10;
}

.extension-card {
  display: grid;
  gap: 14px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.05);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-card .eyebrow {
  width: fit-content;
}

.auth-note {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-soft);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.auth-links a {
  color: var(--brand);
  font-weight: 700;
}

.helper-grid {
  display: grid;
  gap: 14px;
}

.helper-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.helper-card strong {
  display: block;
  margin-bottom: 6px;
}

body.tool-page {
  --tool-accent: var(--brand);
  --tool-accent-strong: var(--brand-strong);
  --tool-accent-soft: rgba(37, 99, 235, 0.12);
  --tool-wash: rgba(96, 165, 250, 0.16);
  --tool-wash-strong: rgba(15, 118, 110, 0.14);
  --tool-hero-start: #0d1830;
  --tool-hero-mid: #17335a;
  --tool-hero-end: #f4f7ff;
  --tool-dark-start: #0f1f37;
  --tool-dark-end: #17345b;
  background:
    radial-gradient(circle at top left, var(--tool-wash), transparent 24%),
    radial-gradient(circle at top right, var(--tool-wash-strong), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fb 42%, #ffffff 100%);
}

body.tool-page--security {
  --tool-accent: #0f9f6e;
  --tool-accent-strong: #0a7b55;
  --tool-accent-soft: rgba(15, 159, 110, 0.12);
  --tool-wash: rgba(15, 159, 110, 0.14);
  --tool-wash-strong: rgba(12, 107, 86, 0.14);
  --tool-hero-start: #0b1820;
  --tool-hero-mid: #123b43;
  --tool-hero-end: #eef9f2;
  --tool-dark-start: #0e2228;
  --tool-dark-end: #144953;
}

body.tool-page--codes {
  --tool-accent: #0f766e;
  --tool-accent-strong: #115e59;
  --tool-accent-soft: rgba(15, 118, 110, 0.12);
  --tool-wash: rgba(15, 118, 110, 0.13);
  --tool-wash-strong: rgba(249, 115, 22, 0.12);
  --tool-hero-start: #0b1628;
  --tool-hero-mid: #133c4c;
  --tool-hero-end: #f6f4ec;
  --tool-dark-start: #0d2130;
  --tool-dark-end: #134553;
}

body.tool-page--hash {
  --tool-accent: #f97316;
  --tool-accent-strong: #c65b14;
  --tool-accent-soft: rgba(249, 115, 22, 0.12);
  --tool-wash: rgba(249, 115, 22, 0.13);
  --tool-wash-strong: rgba(15, 118, 110, 0.13);
  --tool-hero-start: #111a29;
  --tool-hero-mid: #18424d;
  --tool-hero-end: #f7f1e4;
  --tool-dark-start: #111d2d;
  --tool-dark-end: #17404b;
}

.tool-main {
  padding-bottom: 44px;
}

.app-header-card {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 248, 252, 0.96) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
}

.app-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-header-copy {
  display: grid;
  gap: 8px;
}

.app-header-copy h1,
.app-panel-head h2,
.app-panel-head h3 {
  margin: 0;
}

.app-header-copy p,
.app-panel-head p {
  margin: 0;
  color: var(--text-soft);
}

.app-header-meta,
.app-chip-row,
.app-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(21, 32, 51, 0.05);
  color: var(--text-soft);
  font-weight: 700;
}

.app-chip--accent {
  background: var(--tool-accent-soft);
  color: var(--tool-accent-strong);
}

.app-glance-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.app-glance-card {
  padding: 16px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tool-accent) 12%, white), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 246, 250, 0.96) 100%);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.app-glance-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.app-glance-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.app-workspace-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.app-stack {
  display: grid;
  gap: 20px;
}

.app-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-page .hero-shell {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tool-accent) 28%, white), transparent 30%),
    linear-gradient(135deg, var(--tool-hero-start) 0%, var(--tool-hero-mid) 54%, var(--tool-hero-end) 100%);
}

.tool-page .hero-shell::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 80% 24%, color-mix(in srgb, var(--tool-accent) 26%, white), transparent 24%);
}

.tool-page .kicker,
.tool-page .badge-pill,
.tool-page .local-badge,
.tool-page .tag {
  background: var(--tool-accent-soft);
  color: var(--tool-accent-strong);
}

.tool-page .hero-shell .kicker,
.tool-page .hero-shell .hero-badges span {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.tool-page .hero-shell .local-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.tool-hero-note {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.tool-hero-note h2,
.tool-hero-note h3 {
  margin: 0;
  color: #ffffff;
}

.tool-hero-note p,
.tool-hero-note li {
  color: rgba(255, 255, 255, 0.86);
}

.tool-hero-note ul,
.tool-note-list,
.info-list,
.tips-list,
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tool-note-list li,
.info-list li,
.tips-list li,
.mini-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tool-note-list li::before,
.info-list li::before,
.tips-list li::before,
.mini-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tool-accent), var(--warm));
}

.tool-surface,
.tool-panel,
.tool-surface--dark {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
}

.tool-surface,
.tool-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 251, 0.98) 100%);
}

.tool-panel {
  padding: 22px;
  box-shadow: none;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tool-accent) 10%, white), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.98) 100%);
}

.tool-surface--dark,
.tool-result-stage,
.output {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tool-accent) 22%, white), transparent 28%),
    linear-gradient(135deg, var(--tool-dark-start) 0%, var(--tool-dark-end) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.tool-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.tool-section-head h2,
.tool-section-head h3,
.tool-panel h3 {
  margin: 0;
  color: var(--text);
}

.tool-surface--dark .tool-section-head h2,
.tool-surface--dark .tool-section-head h3 {
  color: #ffffff;
}

.tool-section-copy,
.tool-panel p,
.tool-surface p,
.section-copy {
  margin: 0;
  color: var(--text-soft);
}

.tool-surface--dark .tool-section-copy,
.tool-surface--dark p,
.output .section-copy {
  color: rgba(248, 251, 255, 0.78);
}

.tool-result-stage,
.output {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
}

.tool-result-stage__top,
.password-display-top,
.output-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tool-result-stage__label,
.password-display-top span,
.output-top span {
  color: rgba(248, 251, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.tool-result-stage__value,
.generated-password,
.output-box {
  min-height: 88px;
  margin: 0;
  font-family: "Courier New", monospace;
  line-height: 1.72;
}

.generated-password,
.output-box {
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
}

.tool-result-stage__value {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.tool-result-stage__hint {
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  font-size: 0.92rem;
}

.tool-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tool-metric-card,
.meta-card,
.meta {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.tool-metric-card span,
.meta-card span,
.meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-metric-card strong,
.meta-card strong,
.meta strong {
  color: var(--text);
  font-size: 1rem;
}

.tool-grid-2,
.tool-grid-3,
.tool-panel-grid,
.field-stack {
  display: grid;
  gap: 18px;
}

.tool-grid-2,
.tool-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-label-row,
.field label,
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}

.tool-label-row small,
.field label small,
.field-label small,
.fine,
.micro-copy {
  color: var(--text-muted);
  font-weight: 600;
}

.tool-inline-value,
.length-number {
  width: 108px;
  text-align: center;
}

.tool-input,
.input,
.select,
.area,
.barcode-input,
.file-input,
.length-number {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(21, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: none;
}

.length-number {
  min-height: 48px;
}

.area {
  min-height: 140px;
  resize: vertical;
}

.tool-input:focus,
.input:focus,
.select:focus,
.area:focus,
.barcode-input:focus,
.file-input:focus,
.length-number:focus {
  outline: none;
  border-color: var(--tool-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tool-accent) 16%, white);
}

.range-input {
  width: 100%;
  accent-color: var(--tool-accent);
}

.range-labels,
.tool-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

.tool-toggle-grid,
.option-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-toggle,
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tool-toggle:hover,
.option-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tool-accent) 30%, white);
  box-shadow: var(--shadow-sm);
}

.tool-toggle input,
.option-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--tool-accent);
}

.tool-toggle strong,
.option-card label {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.tool-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}

.actions,
.action-row,
.tool-action-row,
.batch-toolbar,
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-status,
.copy-status,
.status,
.status-text,
.batch-summary {
  min-height: 24px;
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
}

.copy-status,
.status,
.status-text {
  margin-top: 12px;
}

.tool-divider {
  height: 1px;
  background: rgba(21, 32, 51, 0.08);
  margin: 6px 0 0;
}

.preview-shell {
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}

.preview-placeholder {
  max-width: 360px;
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  text-align: center;
}

#barcodeCanvas,
#qrcodeCanvas canvas,
#qrcodeCanvas img {
  max-width: 100%;
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.batch-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

#dataTable {
  display: none;
  min-width: 720px;
}

#dataTable thead th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#dataTable tbody tr:nth-child(even) {
  background: rgba(21, 32, 51, 0.025);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 18, 32, 0.36);
  backdrop-filter: blur(10px);
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.password-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.password-page .tool-surface.password-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  padding: 24px;
}

.password-primary,
.password-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}

.password-workbench__head {
  align-items: flex-start;
  gap: 12px;
}

.password-workbench__head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.password-workbench__head p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.password-simple-output {
  display: grid;
  align-items: center;
  min-height: 148px;
  padding: 20px 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.98) 100%);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.password-page .generated-password {
  min-height: 0;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.5vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.password-strength-strip,
.password-control-block,
.password-meta-card {
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.password-strength-strip {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
}

.password-meta-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-meta-card {
  padding: 14px 16px;
  border-radius: 18px;
}

.password-meta-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.password-meta-card strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.password-simple-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-simple-actions .ui-button {
  justify-content: center;
}

.password-page .copy-status {
  min-height: 20px;
  margin-top: -2px;
}

.password-control-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.password-page .tool-toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.password-page .tool-toggle {
  min-height: 100%;
  padding: 14px 16px;
  border-radius: 18px;
}

.password-page .tool-toggle small {
  font-size: 0.82rem;
}

body.tool-page--codes .preview-shell {
  min-height: 280px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 250, 0.98) 100%);
  border: 1px solid rgba(21, 32, 51, 0.08);
  color: var(--text);
}

body.tool-page--codes .preview-shell .tool-result-stage__label,
body.tool-page--codes .preview-shell .local-badge {
  color: var(--text);
}

body.tool-page--codes .preview-shell .local-badge {
  background: rgba(15, 118, 110, 0.1);
}

body.tool-page--codes .preview-placeholder {
  color: var(--text-soft);
}

.hash-page .app-header-card {
  padding: 20px 24px;
}

.hash-workspace .tool-surface {
  padding: 24px;
}

.hash-workspace .field,
.hash-workspace .options,
.hash-workspace .actions,
.hash-workspace .tag-row,
.hash-workspace .meta-grid {
  margin-top: 14px;
}

.hash-workspace .area {
  min-height: 108px;
}

.hash-workspace .output {
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.98) 100%);
  border: 1px solid rgba(21, 32, 51, 0.08);
  color: var(--text);
}

.hash-workspace .output-top span {
  color: var(--text-muted);
}

.hash-workspace .output .local-badge {
  background: rgba(249, 115, 22, 0.12);
  color: #9a5116;
}

.hash-workspace .output-box {
  min-height: 112px;
  background: rgba(21, 32, 51, 0.04);
  color: var(--text);
}

.hash-workspace .result-box {
  min-height: 110px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hash-workspace .options {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(21, 32, 51, 0.03) 0%, color-mix(in srgb, var(--tool-accent) 10%, white) 100%);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.hash-workspace .options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hash-workspace .output-box,
.hash-workspace .result-box {
  border-radius: 22px;
}

.hash-workspace .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hash-workspace .tag.warn {
  background: rgba(220, 38, 38, 0.12);
  color: #a83a2b;
}

.hash-workspace .tag.safe {
  background: rgba(15, 159, 110, 0.12);
  color: #0b7b55;
}

.hash-workspace .result-box.ok {
  background: linear-gradient(135deg, rgba(15, 159, 110, 0.12) 0%, rgba(232, 248, 241, 0.95) 100%);
  border-color: rgba(15, 159, 110, 0.2);
}

.hash-workspace .result-box.bad {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(252, 239, 239, 0.96) 100%);
  border-color: rgba(220, 38, 38, 0.14);
}

.hash-workspace .inspect-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hash-workspace .inspect-item strong {
  display: block;
  margin-bottom: 6px;
}

.app-kicker {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.health-page {
  --tool-accent: #0f766e;
  --tool-dark-start: #0f1729;
  --tool-dark-end: #163049;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 18%),
    linear-gradient(180deg, #f4f8fb 0%, #f9fafc 48%, #ffffff 100%);
}

.health-shell {
  display: grid;
  gap: 20px;
}

.health-intro {
  padding: 24px 28px;
}

.health-intro__copy {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.health-intro__copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.health-workbench {
  min-height: 100%;
  padding: 20px;
}

.health-workbench__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.health-workbench__head h2 {
  margin: 8px 0 4px;
}

.health-workbench__actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.health-select-wrap {
  display: grid;
  gap: 6px;
}

.health-needed {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 32, 51, 0.08);
}

.health-needed__label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.health-needed__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-workbench__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  margin-top: 16px;
}

.health-form {
  display: grid;
  gap: 10px;
  align-content: start;
}

.health-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(21, 32, 51, 0.04);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.health-result-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 251, 0.98) 100%);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.health-result-panel.is-error {
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 245, 245, 0.98) 100%);
}

.health-result-primary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(21, 32, 51, 0.04);
}

.health-result-primary span,
.health-result-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.health-result-primary strong {
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.05;
}

.health-result-primary p,
.health-result-card p {
  margin: 0;
  color: var(--text-soft);
}

.health-result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.health-result-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 32, 51, 0.08);
}

.health-result-card strong {
  color: var(--text);
  font-size: 1rem;
}

.health-empty {
  padding: 18px;
  border-radius: 22px;
  background: rgba(21, 32, 51, 0.04);
  border: 1px dashed rgba(21, 32, 51, 0.14);
}

.health-empty h3 {
  margin: 0 0 8px;
}

.tool-hero-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-hero-metric {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-hero-metric span {
  display: block;
  margin-bottom: 6px;
  color: rgba(248, 251, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.tool-hero-metric strong {
  color: #ffffff;
  font-size: 1rem;
}

.game-card--wide {
  width: min(980px, 100%);
}

.game-head {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.game-head p {
  margin: 0;
  color: var(--text-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

.status-pill--light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.guess-form input,
.guess-form .ui-field {
  max-width: 280px;
}

.result-box {
  min-height: 86px;
}

.result-box.is-success {
  border-color: rgba(15, 159, 110, 0.28);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98) 0%, rgba(220, 252, 231, 0.98) 100%);
}

.result-box.is-error {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 237, 213, 0.98) 100%);
}

.result-box.is-muted {
  color: var(--text-soft);
}

.game-note {
  padding: 18px;
  border-radius: 20px;
  background: rgba(21, 32, 51, 0.04);
  color: var(--text-soft);
}

.game-meta-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
}

.click-target {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  user-select: none;
}

.target-stage.is-complete .click-target {
  display: none;
}

.celebration-card {
  width: min(520px, calc(100vw - 24px));
  padding: 32px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 26%),
    linear-gradient(135deg, #0a1324 0%, #173867 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.celebration-burst {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.celebration-burst span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 58px;
  border-radius: 999px;
  transform-origin: 50% 100%;
}

.celebration-burst span::before,
.celebration-burst span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff 0%, #60a5fa 100%);
  animation: burst 1.2s ease-in-out infinite;
}

.celebration-burst span::before {
  top: 72px;
  height: 32px;
}

.celebration-burst span::after {
  top: 108px;
  height: 22px;
  animation-delay: 0.12s;
}

.celebration-burst span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.celebration-burst span:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.celebration-burst span:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.celebration-burst span:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }
.celebration-burst span:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg); }
.celebration-burst span:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg); }
.celebration-burst span:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg); }
.celebration-burst span:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg); }

@keyframes burst {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
  }

  85% {
    opacity: 0;
    transform: translateY(-42px);
  }
}

@media (min-width: 768px) {
  .md-span-4 { grid-column: span 4; }
  .md-span-6 { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .lg-span-2 { grid-column: span 2; }
  .lg-span-3 { grid-column: span 3; }
  .lg-span-4 { grid-column: span 4; }
  .lg-span-5 { grid-column: span 5; }
  .lg-span-6 { grid-column: span 6; }
  .lg-span-7 { grid-column: span 7; }
  .lg-span-8 { grid-column: span 8; }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .site-frame {
    padding-top: 94px;
  }

  .password-page .tool-surface.password-workbench {
    grid-template-columns: 1fr;
  }

  .health-workbench__grid,
  .health-result-grid {
    grid-template-columns: 1fr;
  }

  .health-workbench,
  .health-intro {
    padding: 22px;
  }

  .site-header {
    padding-top: 16px;
  }

  .site-header__inner {
    min-height: 68px;
    padding-inline: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    margin-left: 0;
  }

  .site-nav__rail {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open .site-nav__rail {
    display: flex;
  }

  .site-nav__link,
  .site-nav__button {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav__group {
    width: 100%;
  }

  .site-nav__dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
    border-radius: 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__group.is-open .site-nav__dropdown {
    display: grid;
  }

  .hero,
  .hero-shell,
  .password-hero-shell,
  .food-hero-shell,
  .barcode-hero-shell,
  .notice-card,
  .profile-card,
  .hub-card,
  .tool-card,
  .info-card,
  .batch-card,
  .card-shell,
  .decision-card,
  .auth-card,
  .game-card,
  .blog-shell,
  .post-shell {
    padding: 24px;
    border-radius: 24px;
  }

  .auth-layout,
  .grid-2,
  .profile-grid,
  .control-grid,
  .filter-grid,
  .meta-grid,
  .tool-grid-2,
  .tool-grid-3,
  .tool-panel-grid,
  .tool-toggle-grid,
  .tool-hero-metrics,
  .app-workspace-grid,
  .footer-grid,
  .hero-grid,
  .split-card,
  .game-meta-grid {
    grid-template-columns: 1fr;
  }

  .auth-media {
    min-height: 320px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .shell {
    width: min(100vw - 20px, 1180px);
  }

  .password-page .tool-surface.password-workbench {
    padding: 18px;
    gap: 18px;
  }

  .password-simple-output {
    min-height: 120px;
    padding: 18px;
  }

  .password-meta-row,
  .password-simple-actions,
  .password-page .tool-toggle-grid {
    grid-template-columns: 1fr;
  }

  .health-workbench__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .health-workbench,
  .health-intro {
    padding: 18px;
  }

  .health-result-primary,
  .health-result-card,
  .health-field {
    border-radius: 18px;
  }

  .news-ticker {
    width: min(100vw - 20px, 1180px);
  }

  .hero h1,
  .hero-shell h1,
  .password-hero-shell h1,
  .food-hero-shell h1,
  .barcode-hero-shell h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .stat-grid,
  .card-grid,
  .hub-grid,
  .post-grid,
  .gallery-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .game-board--ttt {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

  .auth-meta,
  .password-display-top,
  .output-top,
  .tool-result-stage__top,
  .app-header-row,
  .section-head,
  .section-title,
  .group-head,
  .tool-label-row,
  .field label,
  .field-label,
  .hash-workspace .options-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-inline-value,
  .length-number,
  .action-row .ui-button,
  .tool-action-row .ui-button,
  .batch-toolbar .ui-button,
  .download-row .ui-button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

.theme-toggle {
  min-width: 72px;
  padding-inline: 10px;
}

.theme-toggle::after {
  content: none;
}

.theme-toggle__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 52px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(15, 118, 110, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #e2e8f0);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.theme-toggle__icon--sun {
  border-radius: 50%;
  border: 2px solid currentColor;
}

.theme-toggle__icon--sun::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.6;
}

.theme-toggle__icon--moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}

.theme-toggle__icon--moon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-strong);
}

.theme-toggle[data-theme-value="dark"] .theme-toggle__track {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.86));
  border-color: rgba(148, 163, 184, 0.16);
}

.theme-toggle[data-theme-value="dark"] .theme-toggle__thumb {
  transform: translateX(24px);
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
}

.theme-toggle[data-theme-value="dark"] .theme-toggle__icon--sun {
  color: rgba(253, 230, 138, 0.72);
}

.theme-toggle[data-theme-value="dark"] .theme-toggle__icon--moon {
  color: rgba(226, 232, 240, 0.92);
}

.theme-toggle[data-theme-value="light"] .theme-toggle__icon--sun {
  color: rgba(245, 158, 11, 0.95);
}

.theme-toggle[data-theme-value="light"] .theme-toggle__icon--moon {
  color: rgba(100, 116, 139, 0.64);
}

#degrees,
#certifications,
#experience,
#projects {
  scroll-margin-top: 132px;
}

html[data-theme="dark"] {
  --bg: #08111d;
  --bg-accent: #0d1a2b;
  --surface: rgba(10, 18, 30, 0.84);
  --surface-strong: #0c1729;
  --surface-muted: #111d31;
  --surface-dark: #040b15;
  --text: #e6eefb;
  --text-soft: #a6b6cd;
  --text-muted: #7f90a8;
  --stroke: rgba(148, 163, 184, 0.16);
  --stroke-strong: rgba(148, 163, 184, 0.24);
  --brand: #60a5fa;
  --brand-strong: #93c5fd;
  --brand-soft: rgba(96, 165, 250, 0.18);
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.16);
  --warm: #fb923c;
  --warm-soft: rgba(251, 146, 60, 0.16);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body:not(.page-auth):not(.page-game) {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.08), transparent 24%),
    linear-gradient(180deg, #060d17 0%, #08111d 45%, #0b1523 100%);
}

html[data-theme="dark"] a:hover {
  color: var(--brand-strong);
}

html[data-theme="dark"] .site-header__inner {
  background: rgba(8, 15, 28, 0.82);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .brand__eyebrow,
html[data-theme="dark"] .brand__title,
html[data-theme="dark"] .site-nav__link,
html[data-theme="dark"] .site-nav__button,
html[data-theme="dark"] .nav-toggle {
  color: var(--text-soft);
}

html[data-theme="dark"] .site-nav__link:hover,
html[data-theme="dark"] .site-nav__button:hover,
html[data-theme="dark"] .nav-toggle:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

html[data-theme="dark"] .site-nav__link.is-active,
html[data-theme="dark"] .site-nav__button.is-active,
html[data-theme="dark"] .theme-toggle[data-theme-value="dark"] {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.22);
  color: var(--brand-strong);
}

html[data-theme="dark"] .site-nav__dropdown,
html[data-theme="dark"] .site-nav__rail,
html[data-theme="dark"] .nav-toggle {
  background: rgba(8, 15, 28, 0.96);
  border-color: var(--stroke);
}

html[data-theme="dark"] .site-nav__dropdown a {
  color: var(--text-soft);
}

html[data-theme="dark"] .site-nav__dropdown a:hover,
html[data-theme="dark"] .site-nav__dropdown a.is-active {
  background: rgba(96, 165, 250, 0.12);
  color: var(--brand-strong);
}

html[data-theme="dark"] .surface,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .hub-card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .batch-card,
html[data-theme="dark"] .card-shell,
html[data-theme="dark"] .decision-card,
html[data-theme="dark"] .course-item,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .post-shell,
html[data-theme="dark"] .blog-shell,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .data-panel,
html[data-theme="dark"] .overview-panel,
html[data-theme="dark"] .timeline-panel,
html[data-theme="dark"] .skill-panel,
html[data-theme="dark"] .download-panel,
html[data-theme="dark"] .gallery-lead,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .extension-card,
html[data-theme="dark"] .spotlight-card,
html[data-theme="dark"] .app-header-card,
html[data-theme="dark"] .app-glance-card,
html[data-theme="dark"] .tool-surface,
html[data-theme="dark"] .tool-panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .news-ticker {
  background: linear-gradient(180deg, rgba(12, 23, 41, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
  border-color: var(--stroke);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .tool-panel {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--tool-accent) 20%, black), transparent 42%),
    linear-gradient(180deg, rgba(12, 23, 41, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
}

html[data-theme="dark"] .ui-field,
html[data-theme="dark"] .ui-select,
html[data-theme="dark"] .field-input,
html[data-theme="dark"] .field-select,
html[data-theme="dark"] .tool-input,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .area,
html[data-theme="dark"] .decision-input,
html[data-theme="dark"] .barcode-input,
html[data-theme="dark"] .file-input,
html[data-theme="dark"] .length-number {
  background: rgba(8, 15, 28, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text);
}

html[data-theme="dark"] .ui-field::placeholder,
html[data-theme="dark"] .field-input::placeholder,
html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] .area::placeholder,
html[data-theme="dark"] .decision-input::placeholder,
html[data-theme="dark"] .barcode-input::placeholder {
  color: var(--text-muted);
}

html[data-theme="dark"] .ui-button--secondary,
html[data-theme="dark"] .ui-button--ghost,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .secondary-btn,
html[data-theme="dark"] .ghost-btn,
html[data-theme="dark"] .btn-soft,
html[data-theme="dark"] .btn-warm {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .ui-button--secondary:hover,
html[data-theme="dark"] .ui-button--ghost:hover,
html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .secondary-btn:hover,
html[data-theme="dark"] .ghost-btn:hover,
html[data-theme="dark"] .btn-soft:hover,
html[data-theme="dark"] .btn-warm:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text);
}

html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .extension-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .tool-toggle,
html[data-theme="dark"] .option-card,
html[data-theme="dark"] .batch-summary,
html[data-theme="dark"] .result-box,
html[data-theme="dark"] .tool-metric-card,
html[data-theme="dark"] .meta-card,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .password-simple-output,
html[data-theme="dark"] .password-strength-strip,
html[data-theme="dark"] .password-control-block,
html[data-theme="dark"] .password-meta-card,
html[data-theme="dark"] body.tool-page--codes .preview-shell,
html[data-theme="dark"] .hash-workspace .output,
html[data-theme="dark"] .health-result-primary,
html[data-theme="dark"] .health-result-card,
html[data-theme="dark"] .health-empty {
  background: linear-gradient(180deg, rgba(14, 26, 44, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--text);
}

html[data-theme="dark"] .tool-toggle strong,
html[data-theme="dark"] .password-page .generated-password,
html[data-theme="dark"] .password-meta-card strong,
html[data-theme="dark"] .app-glance-card strong,
html[data-theme="dark"] .health-result-primary strong,
html[data-theme="dark"] .health-result-card strong,
html[data-theme="dark"] body.tool-page--codes .preview-shell .tool-result-stage__label,
html[data-theme="dark"] body.tool-page--codes .preview-shell .local-badge,
html[data-theme="dark"] .hash-workspace .output-top span {
  color: var(--text);
}

html[data-theme="dark"] .tool-toggle small,
html[data-theme="dark"] .password-meta-card span,
html[data-theme="dark"] .app-header-copy p,
html[data-theme="dark"] .app-panel-head p,
html[data-theme="dark"] .app-glance-card span,
html[data-theme="dark"] .fine,
html[data-theme="dark"] .micro-copy,
html[data-theme="dark"] .health-result-primary span,
html[data-theme="dark"] .health-result-card span,
html[data-theme="dark"] .health-result-primary p,
html[data-theme="dark"] .health-result-card p,
html[data-theme="dark"] body.tool-page--codes .preview-placeholder {
  color: var(--text-soft);
}

html[data-theme="dark"] .badge-row span,
html[data-theme="dark"] .stat-pill,
html[data-theme="dark"] .soft-pill,
html[data-theme="dark"] .app-chip {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-soft);
}

html[data-theme="dark"] .app-chip--accent,
html[data-theme="dark"] .hash-workspace .output .local-badge {
  background: rgba(96, 165, 250, 0.16);
  color: var(--brand-strong);
}

html[data-theme="dark"] .quote-pill {
  background: rgba(96, 165, 250, 0.12);
  color: var(--brand-strong);
}

html[data-theme="dark"] .hash-workspace .options,
html[data-theme="dark"] .hash-workspace .output-box,
html[data-theme="dark"] .hash-workspace .result-box {
  background: linear-gradient(180deg, rgba(14, 26, 44, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--text);
}

html[data-theme="dark"] .hash-workspace .tag.warn {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

html[data-theme="dark"] .hash-workspace .tag.safe {
  background: rgba(52, 211, 153, 0.16);
  color: #a7f3d0;
}

html[data-theme="dark"] .hash-workspace .result-box.ok {
  background: linear-gradient(180deg, rgba(8, 61, 45, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
  border-color: rgba(52, 211, 153, 0.18);
}

html[data-theme="dark"] .hash-workspace .result-box.bad {
  background: linear-gradient(180deg, rgba(80, 18, 24, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
  border-color: rgba(248, 113, 113, 0.18);
}

html[data-theme="dark"] .metric-card .stat-card__label {
  color: rgba(230, 238, 251, 0.72);
}

html[data-theme="dark"] .stat-card--link:hover,
html[data-theme="dark"] .stat-card--link:focus-visible {
  background: linear-gradient(180deg, rgba(15, 28, 48, 0.98) 0%, rgba(10, 18, 30, 0.98) 100%);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .stat-card--link:hover .stat-card__value,
html[data-theme="dark"] .stat-card--link:focus-visible .stat-card__value {
  color: var(--brand-strong);
}

html[data-theme="dark"] .theme-toggle__icon--moon::after {
  background: #0c1729;
}

html[data-theme="dark"] .footer-grid > div:last-child {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .ticker-content,
html[data-theme="dark"] .section-copy,
html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .stat-card__label {
  color: var(--text-soft);
}
