@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');
/* Premium font (chosen 2026-11-06): General Sans for Latin text; Odia letters fall back to Noto Sans Oriya.
   The handwritten tagline and monospace codes keep their own fonts. */
body, .font-display, .font-sans, h1, h2, h3, h4, button, input, select, textarea { font-family: 'General Sans', 'Noto Sans Oriya', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
.font-mono, code, pre, .font-mono * { font-family: ui-monospace, Consolas, monospace !important; }

/* TKK glass-morphic 3D buttons — loaded on every page.
   Adds a glossy top light, a glass edge and a 3D press ON TOP of each button's own colour
   (background-image layers over background-color, so every button keeps its colour). */
button[class*="bg-"]:not(.tkk-flat):not([class*="bg-gradient"]), a[class*="bg-"][class*="rounded"]:not(.tkk-flat):not([class*="bg-gradient"]),
.tkk-glass {
  /* Style C (chosen 2026-11-10): glass + raised 3D buttons — a solid ledge underneath, the button sinks onto it when pressed */
  background-image: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.10) 42%, rgba(0,0,0,0) 55%, rgba(0,0,0,.22) 100%);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 4px 0 rgba(0,0,0,.42), 0 12px 22px -8px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 8px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
button[class*="bg-"]:not(.tkk-flat):not([class*="bg-gradient"]):hover, a[class*="bg-"][class*="rounded"]:not(.tkk-flat):not([class*="bg-gradient"]):hover, .tkk-glass:hover {
  filter: brightness(1.07);
}
button[class*="bg-"]:not(.tkk-flat):not([class*="bg-gradient"]):active, a[class*="bg-"][class*="rounded"]:not(.tkk-flat):not([class*="bg-gradient"]):active, .tkk-glass:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0,0,0,.42), 0 3px 8px -4px rgba(0,0,0,.5), inset 0 2px 5px rgba(0,0,0,.25);
}
/* the big coloured buttons (Start Practice, Start Test, Pay, Unlock…): orange/green/gold 3D with a ledge */
.start, .tkx-start, .pay, .test-card-item .button-container button, #heroLogin, #googleLoginBtn, .tkk-3d {
  box-shadow: 0 5px 0 rgba(0,0,0,.45), 0 14px 26px -8px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.65), inset 0 -4px 10px rgba(0,0,0,.22) !important;
  transition: transform .08s ease, box-shadow .08s ease !important;
}
.start:active, .tkx-start:active, .pay:active, .test-card-item .button-container button:active, #heroLogin:active, #googleLoginBtn:active, .tkk-3d:active {
  transform: translateY(5px) !important;
  box-shadow: 0 0 0 rgba(0,0,0,.45), 0 3px 8px -4px rgba(0,0,0,.5), inset 0 2px 6px rgba(0,0,0,.3) !important;
}
/* icons on the glass cards look like glossy jewels */
.tkx-card .em, .mx-card .em, .tkk-mtile .ic {
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.5), rgba(255,255,255,.08) 62%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -3px 6px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.45) !important;
}
/* glass cards: a ledge underneath so they stand off the page */
.tkx-card:not(.soon), .mx-card:not(.soon), .tkk-mtile, .test-card-item {
  box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 18px 32px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.3) !important;
}
.tkx-card:active, .mx-card:active, .tkk-mtile:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 6px 14px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3) !important; }
/* very dark / transparent buttons get a light glass fill so they still read as glass */
button[class*="bg-slate-8"], button[class*="bg-slate-9"], button[class*="bg-white/"], button[class*="bg-transparent"] {
  background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 55%, rgba(0,0,0,.16));
}
/* keep small icon-only controls, tabs and palette squares light */
.tkk-menu-item, .preview-palette-btn, [id^="star-"], .tab, .tkx-arr, .palette-btn, .option-label { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { button, a { transition: none !important; } }
