:root {
  --accent-blue: #375E97;
  --accent-yellow: #FFBB00;
  --text-primary: #4c4c4c;
  --text-secondary: #666;
  --surface: #FFFFFF;
  --bg-light: #F7F9FC;
  --border: #EAEAEA;
  --modal-overlay: rgba(0, 0, 0, 0.4);
}
* {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", Arial-fallback, Linux-fallback, Helvetica, Helvetica Neue, -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}

body {
  background-color: var(--surface);
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

a {
  text-decoration: none;
  color: var(--text-secondary);
}

img {
  cursor: pointer;
}

#landing {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: 24px;
}

div.info {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-items: center;
  gap: 5px;
  margin: 10px auto;
  max-width: 150px;
}

div.info > div {
  display: contents;
}

img.logo {
  margin: 0 auto;
  max-width: 128px;
  margin-top: 50px;
  content: url(/images/logo_v2.png);
}

img.logo_s {
  margin: 0 auto;
  max-width: 64px;
  content: url(/images/logo_v2.png);
}

div.navcontainer {
  position: relative;
}

nav h1.title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 4px;
  top: 0;
  left: 0;
  width: 100%;
  position: absolute;
}

h1.title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 4px;
}

div.rightmenu {
  position: relative;
  z-index: 2;
  float: right;
  margin-right: 20px;
  margin-top: 7px;
}

div.leftmenu {
  position: relative;
  z-index: 2;
  float: left;
  margin-left: 20px;
  margin-top: 7px;
}

h1.title span.cv {
  color: var(--accent-yellow);
}

p.subtitle {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 10px;
}

button.btn {
  margin: 20px auto;
  display: block;
  font-size: 1.2em;
  padding: 10px 30px;
  border-radius: 1.5em;
  font-weight: 500;
}
button.sbtn  {
  margin: auto;
  display: block;
}

button.btn-b {
  margin: 10px auto;
  font-size: 1.3em;
  padding: 10px 30px;
  background: #CADCFC;
  color: #00246B;
  border-radius: 1.5em;
  border: 1px solid #00246B;
  font-weight: 500;
  width: 155px;
  border: none;
  display: block;
}

a.btn-b {
  margin: 20px auto;
  font-size: 1.3em;
  padding: 10px 30px;
  background: #CADCFC;
  color: #00246B;
  border-radius: 1.5em;
  border: 1px solid #00246B;
  font-weight: 500;
  width: 155px;
  text-align: center;
  display: block;
}

a.isDisabled {
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  pointer-events: none;
}

button.btn-bl {
  width: 250px;
  margin: 20px auto;
}

a.btn-bl {
  width: 250px;
}

div.btn-container {
  margin: auto;
  display: flex;
}

div.btn-container-v {
  margin: auto;
  display: grid;
}

div.details {
  margin: 0 auto;
  font-size: medium;
}

div.details p {
  margin-bottom: 10px;
}

div.details p#today {
  font-weight: 600;
}

div.details p {
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(2px); 
}

/* Modal Content */
.modal-content {
  background-color: var(--bg-light);
  margin: auto;
  padding: 20px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 600px;
}

/* The Close Button */
.close {
  color: var(--text-primary);
  float: right;
  font-size: 28px;
  font-weight: bold;
  z-index: 5;
  position: relative;
}

.close:hover,
.close:focus {
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

ul.steps {
  margin: 0px 20px;
  font-size: 1em;
}

ul.steps li {
  margin-bottom: 5px;
}

span.sdesc {
  font-size: 1.1em;
  font-weight: 500;
}

span.cta {
  font-size: 1.1em;
  font-weight: 500;
}

h2.htph {
  font-size: 1.8em;
  margin-bottom: 10px;
}

div.tile {
  border: 1px solid var(--text-secondary);
  width: 36px;
  height: 36px;
  margin-left: 5px;
  padding: 3px;
  font-size: 1.3em;
  border-radius: 2px;
  font-weight: 700;
  text-align: center;
  color: #5c5c5c;
}

div.tile span {
  margin: auto;
  display: table;
}

div.tc {
  background-color: var(--accent-yellow);
  border: 1px solid #6B4700;
  color: #6B4700;
}

div.ti {
  text-transform: capitalize;
}

div.ta {
  background-color: var(--accent-blue);
  text-transform: capitalize;
  color: #FFFFFF;
}

div.tr {
  border-radius: 50%;
}

div.tx {
  display: inline-block;
  margin-right: 5px;
  width: 24px;
  height: 24px;
  font-weight: 600;
  text-align: center;
  margin-top: 5px;
}

div.txr {
  border: 1px solid #6B4700;
  border-radius: 50%;
}

div.tix {
  border: 1px solid #6B4700;
}

div.word {
  display: flex;
  margin-bottom: 10px;
  position: relative;
}

div.ws {
  /* border: 1px solid orange;
  padding: 4px 4px 4px 0px;*/
  float: left;
}

div.ws div.ti {
  background-color: #F8DE7E;
}

div.ts {
  /*box-shadow: 0 0 3px 3px skyblue;*/
  background-color: #B9D9EB !important;
}

div.wsc {
  clear: left;
}

#game {
  margin-top: 20px;
}

div.wordlist {
  max-width: 475px;
  margin: auto;
  align-self: center;
  justify-self: center;
  padding: 0px 2px 0px 2px;
}

nav h2 {
  text-align: center;
  font-weight: 600;
  font-size: 1em;
}

nav hr.top {
  margin-bottom: 10px;
  margin-top: 10px;
}

#keyboard-cont {
  margin: 0.3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  clear: left;
  touch-action: manipulation;
}

#keyboard-cont div {
  display: flex;
}

.second-row {
  margin: 0.5rem 0;
}

.kb {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 2px;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #dddddd;
  color: #5e5e5e;
  width: 32px;
  height: 32px;
  border: 1px solid #5e5e5e;
  border-style: outset;
}

.kbl {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 2px;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #dddddd;
  color: #5e5e5e;
  padding: 0px 5px;
  border: 1px solid #5e5e5e;
  border-style: outset;
}

.kbr {
  border-radius: 50%;
}

.kv {
  background-color: var(--accent-yellow);
  color: #6B4700;
}

.kc {
  background-color: var(--accent-blue);
  color: #EDF4F2;
  border-radius: 0px;
}

.toast {
  position: absolute;
  top: 30%;
  left: 5%;
  background-color: rgb(66, 77, 66);
  color: white;
  padding: 5px 10px 5px 10px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8rem;
}

.scoreboard {
  margin: 5px 10px;
}

#ac_container {
  display: inline-block;
  margin-right: 10px;
}

#autochkbtn {
  border: none;
  color: blue;
  font-size: 1rem;
  font-weight: 600;
}

.mistakes {
  float: right;
  margin-right: 10px;
}

.mistakes span.title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

span#mcounter div {
  display: inline-block;
  margin-right: 3px;
  font-size: 0.8rem;
}

div#watch_container {
  display: inline-block;
  margin-right: 10px;
}

span#watch {
  font-size: 1rem;
  font-weight: 600;
}

div.rubric {
  grid-template-columns: auto auto auto auto;
  display: grid;
  margin: auto;
}

div.rubric-container {
  display: flex;
  margin: auto;
}

h2.title {
  text-align: center;
}

p.pnum {
  text-align: center;
  margin-top: 10px;
  font-size: 1.0rem;
}

p.ptheme {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

p.pres_explain {
  text-align: center;
}

h3.pres_cdt {
  text-align: center;
  margin-top: 10px;
}

p.pres_cd {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
}

div.event {
  text-align: center;
}

hr.sep {
  clear: left;
  margin-bottom: 10px;
}

/* Dropdown Button */
.dropbtn {
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  float: left;
  margin-left: 10px;
  padding: 0px;
  background-color: white;
}

.dropbtn img {
  height: 20px;
  width: 20px;
}

/* Dropdown button on hover & focus */
.dropbtn:hover,
.dropbtn:focus {
  background-color: #B9D9EB;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: fixed;
  background-color: var(--bg-light);
  min-width: 160px;
  box-shadow: 0px 8px 16px var(--modal-overlay);
  z-index: 2;
  right: 0px;
  top: 50px;
}

.dropdown-lcontent {
  display: none;
  position: fixed;
  background-color: var(--bg-light);
  min-width: 160px;
  box-shadow: 0px 8px 16px var(--modal-overlay);
  z-index: 2;
  left: 10px;
  top: 50px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-lcontent a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}
.hide {
  display: none !important;
}

div.archive_container {
  margin: auto;
}

h3.title {
  margin-top: 10px;
  margin-bottom: 10px;
}

img.hintIcon {
  content: url(/images/invention-icon.svg);
  height: 24px;
  width: 24px;
  margin-left: 10px;
  align-content: center;
  margin-top: 5px;
}

img.hintIconT {
  height: 20px;
  width: 20px;
  margin-left: 5px;
  align-content: center;
  margin-right: 5px;
  content: url(/images/invention-icon.svg);
  display: inline-block;
}

img.bulb-icon {
  content: url(/images/invention-icon.svg);
  display: inline-block;
}

p#hinttext {
  font-size: 1.3rem;
  margin-top: 10px;
}

img.icon {
  height: 36px;
  width: 36px;
  margin-left: 10px;
}

a.signupl {
  font-size: 1.2rem;
  color: blue;
  font-weight: 800;
}

div#archiveHeader {
  display: flex;
  max-width: 360px;
  margin: 30px auto 10px auto;
}

div.ahtext {
  margin-left: 10px;
}

div.archiveNav {
  max-width: 360px;
  margin: 20px auto 0px auto;
  font-weight: 600;
}

.calendar {
  width: 360px;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #B9D9EB;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.monthYear {
  text-align: center;
  font-weight: 600;
  width: 150px;
}

.header button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  font-weight: 700;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.day {
  text-align: center;
  padding: 5px;
  color: var(--accent-blue);
  font-weight: 500;
}

.dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.date {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  margin: auto;
  cursor: pointer;
  font-weight: 600;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: 0.2s;
}

.date:hover,
.date.active {
  background: #ff5869;
  color: #fff;
}

.date.inactive {
  color: #d2d2d2;
}

.date.complete {
  background: greenyellow;
}

.date.inactive:hover {
  color: #fff;
}

div.icon {
  height: 20px;
  width: 20px;
}

div.help-icon {
  background: url(/images/help-icon.svg) no-repeat;
}

div.settings-icon {
  background: url(/images/setting-icon.svg) no-repeat;
  background-size: contain;
}

div.stats-icon {
  background: url(/images/statistics-icon.svg) no-repeat;
  background-position: bottom;
}

div.mesg {
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
}

ul.buttons {
  list-style-type: none;
  display: block;
}

div.social {
  text-align: center;
  margin: 2rem auto;
}

div.social a {
  margin-right: 12px;
}

div.social a img {
  width: 24px;
  height: 24px;
}

/* Base 
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
}*/

.container {
  width: 100%;
  max-width: 375px;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pop {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Header */
.resheader {
  text-align: center;
  margin-bottom: 16px;
}

.resheader h1 {
  font-size: 24px;
  margin: 0;
}

.resheader p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

/* Puzzle identity */
.identity {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Result Card */
.card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.grid {
  font-family: monospace;
  font-size: 16px;
  line-height: 22px;
}

.result-text {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Buttons */
.button {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent-blue);
  color: white;
}

.primary-btn:active {
  transform: scale(0.96);
}

.secondary-btn {
  background: var(--accent-yellow);
  color: #111;
  height: 44px;
  border-radius: 10px;
  margin-top: 8px;
  padding: 0px 10px;
}

/* Prompt */
.prompt {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 12px 0 20px;
}

/* Countdown */
.countdown {
  background: #FFF8E1;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.countdown .time {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-yellow);
}

/* Streak */
.streak-mesg {
  background: #FFF4CC;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  text-align: center;
}

.stat label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.stat span.value {
  font-size: 16px;
  font-weight: bold;
}

/* Result Modal Specific Layout */
#resultmodal .modal-content {
  max-width: 480px;
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin: 16px auto 36px;
}

#resultmodal .resheader {
  margin-bottom: 12px;
}

#resultmodal .identity {
  margin-bottom: 10px;
}

#resultmodal .card {
  margin-bottom: 12px;
}

#resultmodal .prompt {
  margin: 8px 0 14px;
}

#resultmodal .signup {
  margin-bottom: 0;
  padding: 14px 16px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.share-btn .btn-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.result-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.result-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  box-sizing: border-box;
}

.result-card .card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.countdown-card .card-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.countdown-card .card-label {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.countdown-card .countdown-time {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-yellow);
  line-height: 1.2;
  margin-top: 2px;
}

.streak-card .streak-fire-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.streak-card .streak-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.streak-card .card-sublabel {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
}

.streak-card .card-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* 4-Column Result Stats */
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 14px 6px;
  margin-bottom: 16px;
}

.result-stats .stat {
  position: relative;
  text-align: center;
  padding: 0 4px;
}

.result-stats .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.result-stats .stat label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.result-stats .stat span.value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.1;
}

/* Explore Today's Words Card */
.explore-words-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #EBF5F0;
  border: 1px solid #D2E9DC;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.explore-words-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.explore-words-card:active {
  transform: scale(0.99);
}

.explore-icon-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-book-icon {
  width: 50px;
  height: 50px;
  display: block;
}

.explore-content-col {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.explore-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #123C2A;
  margin-bottom: 3px;
  line-height: 1.2;
}

.explore-desc {
  font-size: 11px;
  line-height: 1.35;
  color: #2E5240;
}

.explore-action-col {
  flex-shrink: 0;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #196338;
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.archive-r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 0 24px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

/* Signup */
.signup {
  background: #F0F4FA;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.signup p {
  margin: 0;
  font-size: 14px;
}

/* Archive */
.archive {
  text-align: center;
  font-size: 14px;
  color: var(--accent-blue);
  margin-bottom: 24px;
  cursor: pointer;
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  z-index: 10;
  display: none;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  display: block;
}

.gameIntro,
#gameIntro .modal-content,
#featureModal .modal-content {
    max-width: 520px;
    padding: 28px 24px 30px;
    border-radius: 20px;
    background: var(--bg-light);
    text-align: center;
    font-family: Inter, sans-serif;
}

.introHeader {
    margin-bottom: 12px;
}

.dailyTag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.introTitle {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.introSubtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}


/* Example Card */

.exampleCard {
    background: var(--surface-alt);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 12px;
}

.exampleLabel {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.examplePuzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wordRow {
    display: flex;
    gap: 8px;
}

.arrow {
    font-size: 24px;
    color: var(--accent-blue);
}

.exampleHint {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-primary);
}


/* Rules */

.quickRules {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 24px;
}

.rule {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--surface-alt);
    border-radius: 14px;
    padding: 7px;
}

.ruleIcon {
    font-size: 20px;
    line-height: 1;
}

.ruleText {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}


/* Meta */

.puzzleMeta {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}



/* Bottom */

.bottomText {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Feature Modal Actions */
.featureActions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.featureActions a.btn,
.featureActions button.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.featureActions .secondary-btn {
    background: var(--surface-alt);
    color: var(--accent-blue);
    border: 1.5px solid var(--accent-blue);
    transition: all 0.2s ease;
}

.featureActions .secondary-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.featureActions .primary-btn {
    background: var(--accent-blue);
    color: #ffffff;
}

/* Mobile */

@media (max-width: 640px) {

    .gameIntro,
    #featureModal .modal-content,
    #gameIntro .modal-content {
        padding: 22px 18px 26px;
        border-radius: 18px;
    }

    .introTitle {
        font-size: 28px;
    }

    .introSubtitle {
        font-size: 15px;
    }

    .tx {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #FEFEFE;
    --text-secondary: #A0AEC0;

    --bg-light: #1A1F2B;
    --border: #2A2F3A;

    --surface: #121620;
    --surface-alt: #1E2430;

    /* Slightly tuned brand colors for dark */
    --accent-blue: #4C7EDB;
    --accent-yellow: #FFC933;
    --modal-overlay: rgba(0, 0, 0, 0.7);
  }

  body {
    background-color: var(--surface);
    color: var(--text-primary);
  }

  .modal-content {
    background-color: var(--surface);
    color: var(--text-primary);
  }

  a {
    color: var(--accent-blue);
  }

  .dropdown-content a {
    color: cornflowerblue;
  }

  .dropdown-lcontent a {
    color: cornflowerblue;
  }

  div.txr {
    border: 1px solid white;
  }

  div.tix {
    border: 1px solid white;
  }

  .dropbtn {
    background-color: #333;
  }

  .header button {
    color: #333;
  }

  .date.inactive {
    color: #d2d2d2;
  }

  div.help-icon {
    background: url(/images/help-icon-dark.svg) no-repeat;
    background-color: var(--surface);
  }

  div.settings-icon {
    background: url(/images/setting-icon-dark.svg) no-repeat;
    background-size: contain;
    background-color: var(--surface);
  }

  div.stats-icon {
    background: url(/images/statistics-icon-dark.svg) no-repeat;
    background-color: var(--surface);
  }

  img.hintIcon {
    content: url(/images/invention-icon-dark.svg);
  }

  img.bulb-icon {
    content: url(/images/invention-icon-dark.svg);
  }

  img.hintIconT {
    content: url(/images/invention-icon-dark.svg);
  }

  img.logo {
    content: url(/images/logo_v5_dark.png);
  }

  img.logo_s {
    content: url(/images/logo_v5_dark.png);
  }



  body {
    background: var(--surface);
    color: var(--text-primary);
  }

  .container {
    background: transparent;
  }

  /* Header */
  .header p,
  .identity,
  .prompt,
  .stat label {
    color: var(--text-secondary);
  }

  /* Card */
  .card {
    background: var(--bg-light);
    border: 1px solid var(--border);
  }

  /* Countdown */
  .countdown {
    background: var(--bg-light);
  }

  .countdown div {
    background: inherit;
  }

  .countdown .time {
    color: var(--accent-yellow);
    background: inherit;
  }

  /* Streak */
  .streak {
    background: rgba(255, 187, 0, 0.12);
  }

  /* Signup */
  .signup {
    background: var(--surface-alt);
  }

  .signup p {
    color: var(--text-primary);
  }

  /* Buttons */
  .primary-btn {
    background: var(--accent-blue);
    color: #fff;
  }

  .secondary-btn {
    background: var(--accent-yellow);
    color: #111;
  }

  /* Archive */
  .archive {
    color: var(--accent-blue);
  }

  div.rubric-container {
    background: var(--bg-light);
  }
  div.rubric {
    background: inherit;
  }
  div.event {
    background: inherit;
  }
  div.result-text {
    background: var(--bg-light);
  }
  div.streak-mesg p,
  div.streak-mesg span {
    background: inherit;
    color: var(--accent-blue);
  }
  div.signup p {
    background: inherit;
  }

  .result-card {
    background: var(--bg-light);
    border-color: var(--border);
  }

  .countdown-card .card-icon,
  .streak-card .card-chevron {
    color: var(--text-secondary);
  }

  .streak-card .streak-title {
    color: var(--text-primary);
  }

  .result-stats .stat span.value {
    color: var(--accent-blue);
  }

  /* Explore card remains high contrast light-mint banner as in mockup */
  .explore-words-card {
    background: #EBF5F0;
    border-color: #D2E9DC;
  }
  .explore-title {
    color: #123C2A;
  }
  .explore-desc {
    color: #2E5240;
  }
  .explore-btn {
    background: #196338;
    color: #FFFFFF;
  }
}

/* Standard syntax */
@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.apply-shake {
  animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

.apply-flip {
  animation: flip 1000ms ease forwards;
}

.landing-reveal-flip {
  animation-duration: 500ms;
}

@keyframes flip {
  0% {
    transform: scaleY(1);
  }

  50% {
    background: white;
    transform: scaleY(0);
  }

  100% {
    transform: scaleY(1);
    background: var(--accent-blue);
  }
}

