:root {
  color-scheme: light;
  --blue: #2449ad;
  --blue-dark: #193577;
  --blue-ink: #20325d;
  --cream: #fff8ec;
  --gold: #f0b44e;
  --orange: #e58949;
  --line: #e8e1d7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--blue-ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse 60% 40% at 92% 9%, #ffe7b9 0%, transparent 78%), radial-gradient(ellipse 35% 50% at 4% 58%, #dfe9ff 0%, transparent 85%), #fcf8f0;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
a { color: inherit; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.masthead { width: min(100% - 64px, 1160px); margin: 0 auto; padding: 27px 0 21px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #dfddda; }
.brand-name { display: inline-flex; align-items: center; gap: 11px; font-family: "Fredoka", sans-serif; font-size: 23px; font-weight: 600; text-decoration: none; color: var(--blue-dark); white-space: nowrap; line-height: .95; }
.brand-name small { font-size: 10px; font-family: "DM Sans", sans-serif; letter-spacing: .27em; font-weight: 800; display: block; margin-top: 5px; }
.brand-dot { background: var(--blue); color: white; font-size: 25px; width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; transform: rotate(-10deg); }
.header-cta { color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--blue); padding: 6px 0; }
.header-cta:hover { color: #e07838; border-color: #e07838; }
.main-content { width: min(100% - 40px, 1050px); margin: 0 auto; flex: 1; padding: 27px 0 44px; }
.hero-heading { text-align: center; margin: 0 auto 29px; }
.eyebrow, .mini-label { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.sparkle { color: var(--orange); margin: 0 9px; font-size: 15px; }
h1, h2, h3, p { margin-top: 0; }
.hero-heading h1 { font-family: "Fredoka", system-ui, sans-serif; font-size: clamp(57px, 8vw, 90px); line-height: .99; letter-spacing: -.045em; font-weight: 600; color: var(--blue-dark); margin: 10px 0 12px; }
.hero-heading h1 span { color: var(--blue); }
.hero-heading .title-period { color: var(--orange); }
.hero-heading p { font-size: 16px; color: #667188; margin: 0; }
.hero-heading p strong { color: #334b78; font-weight: 700; }
.play-layout { display: grid; grid-template-columns: minmax(0, 506px) minmax(280px, 335px); gap: 25px; justify-content: center; align-items: start; }
.game-card { background: #fff; border: 1px solid #eee9e1; border-radius: 27px; padding: 19px; box-shadow: 0 19px 50px #2b417112, 0 3px 9px #2b41710a; min-width: 0; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 1px 1px 14px; }
.score-block { display: flex; flex-direction: column; gap: 3px; }
.score-block--right { text-align: right; }
.stat-label { color: #7f899c; font-weight: 800; letter-spacing: .13em; font-size: 10px; }
.stat-value { font-family: "Fredoka", sans-serif; color: var(--blue-dark); font-size: 29px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.time-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 93px; border-radius: 99px; background: #edf2ff; color: var(--blue); padding: 11px 12px; font-family: "Fredoka", sans-serif; font-size: 23px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-pill svg { width: 19px; height: 19px; }
.time-pill.is-low { background: #fff0e7; color: #c65628; }
.timer-track { height: 6px; border-radius: 99px; background: #e9eef9; margin-bottom: 13px; overflow: hidden; }
.timer-track div { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #eaaa50, #efc772); transition: width .14s linear; }
.timer-track.is-low div { background: #eb744d; }
.board-frame { position: relative; border-radius: 20px; overflow: hidden; padding: 10px; background: linear-gradient(145deg, #315cc9, #183d9c); box-shadow: inset 0 3px 6px #0b2c7a40; }
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; aspect-ratio: 1; touch-action: none; }
.cookie-tile { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 0; background: #ffffff23; border: 1px solid #ffffff15; border-radius: 10px; cursor: grab; position: relative; transition: background .12s, transform .14s; overflow: visible; user-select: none; -webkit-user-select: none; }
.cookie-tile:hover:not(:disabled) { background: #ffffff40; }
.cookie-tile:active:not(:disabled) { background: #ffffff42; }
.cookie-tile.is-dragging { z-index: 4; cursor: grabbing; background: #ffffff48; }
.cookie-tile.is-drop-target { background: #ffe9a876; outline: 2px solid #ffde8e; outline-offset: -2px; z-index: 2; }
.cookie-tile.is-selected { background: #ffffff62; outline: 3px solid #fff; outline-offset: -2px; z-index: 2; }
.cookie-tile.is-hint { background: #ffe99e91; animation: hintGlow .55s ease-in-out infinite alternate; }
.cookie-tile.is-matching .cookie-svg { transform: scale(.12) rotate(36deg); opacity: 0; }
.cookie-tile.is-bursting { background: #ffecad; box-shadow: 0 0 25px #ffe9a4a8; }
.cookie-tile.is-bursting .cookie-svg { transform: scale(1.35) rotate(20deg); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .33s ease; }
.cookie-tile.is-invalid { animation: tileShake .24s ease-in-out; }
.cookie-tile:focus-visible { outline: 3px solid #fff; outline-offset: -3px; z-index: 3; }
.cookie-svg { width: 91%; height: 91%; overflow: visible; filter: drop-shadow(0 3px 1px #172e6b48); transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .23s ease; will-change: transform; }
.cookie-tile.is-selected .cookie-svg { transform: scale(1.08) rotate(-5deg); }
.brookie-svg { filter: drop-shadow(0 0 7px #fff3a4b4) drop-shadow(0 3px 2px #10286265); }
.brookie-glint { transform-box: fill-box; transform-origin: center; animation: brookieGlint 1.5s ease-in-out infinite alternate; }
.brookie-glint--two { animation-delay: -.7s; }
.board-frame.brookie-active::after { content: ""; position: absolute; inset: 0; border: 4px solid #ffdc7a; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 40px #fff2a5b0, 0 0 30px #ffe39a99; animation: brookieFlash .58s ease-out forwards; z-index: 4; }
.game-overlay { position: absolute; inset: 0; background: #122955b6; display: grid; place-items: center; padding: 17px; z-index: 5; backdrop-filter: blur(2px); }
.game-overlay.is-hidden { display: none; }
.overlay-card { text-align: center; background: #fffdf7; width: min(100%, 332px); border-radius: 24px; padding: 26px 20px 23px; box-shadow: 0 13px 45px #091f4c5c; border: 3px solid #fff; }
.overlay-icon { background: #fff0d6; display: grid; place-items: center; width: 67px; height: 67px; border-radius: 19px; font-size: 40px; margin: 0 auto 13px; transform: rotate(-9deg); }
.overlay-card h2 { color: var(--blue-dark); font-family: "Fredoka", sans-serif; font-weight: 600; letter-spacing: -.025em; font-size: 29px; line-height: 1.08; margin: 0 0 10px; }
.overlay-card p { font-size: 13px; line-height: 1.55; color: #68758e; margin: 0 auto 19px; max-width: 250px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; border: 0; border-radius: 13px; background: var(--blue); color: white; padding: 14px 18px; font-family: "Fredoka", sans-serif; font-size: 19px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 0 #1d377e; }
.primary-button:hover { background: #1b3c97; }
.primary-button:active { transform: translateY(3px); box-shadow: 0 3px 0 #1d377e; }
.overlay-note { display: block; margin: 19px 0 0; font-size: 11px; color: #8290a2; font-weight: 700; }
.result-score { font-family: "Fredoka", sans-serif; font-size: 54px; line-height: 1; color: var(--blue); font-weight: 700; margin: 0 0 8px; }
.result-label { font-size: 11px; color: #8a94a2; font-weight: 800; letter-spacing: .15em; margin: 0 0 7px; }
.secondary-button { margin-top: 10px; background: transparent; border: 1.5px solid #c7d3ed; color: var(--blue); border-radius: 12px; padding: 11px 16px; width: 100%; font-size: 13px; font-weight: 800; cursor: pointer; }
.secondary-button:hover { background: #ecf1ff; }
.points-pop { pointer-events: none; opacity: 0; position: absolute; left: 50%; top: 44%; transform: translate(-50%, 0); color: white; font-family: "Fredoka", sans-serif; font-size: 32px; font-weight: 700; text-shadow: 0 3px 10px #0b2877; z-index: 4; }
.points-pop.is-visible { animation: pointsUp .75s ease-out forwards; }
.game-controls { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px 1px 0; }
.status-message { font-size: 11.5px; color: #7d899c; line-height: 1.5; min-height: 32px; max-width: 235px; }
.control-buttons { display: flex; gap: 9px; white-space: nowrap; }
.text-button { border: 0; background: #f1f4fb; color: var(--blue); border-radius: 9px; padding: 8px 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
.text-button:hover:not(:disabled) { background: #e1e9fa; }
.text-button:disabled { opacity: .5; cursor: not-allowed; }
.sidebar { display: grid; gap: 16px; }
.info-card, .flavor-card, .real-cookie-card { border-radius: 22px; }
.info-card { background: #fff; border: 1px solid #eee9e1; padding: 25px 25px 23px; box-shadow: 0 7px 25px #2b41710c; }
.info-card h2 { font-family: "Fredoka", sans-serif; color: var(--blue-dark); font-weight: 600; font-size: 31px; letter-spacing: -.025em; margin: 8px 0 18px; }
.tiny-star { color: var(--orange); font-size: 22px; display: inline-block; margin-left: 7px; transform: rotate(20deg); }
.rules-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; color: #657087; font-size: 13px; line-height: 1.48; }
.rules-list strong { color: #31416c; font-weight: 800; }
.rule-num { font-family: "Fredoka", sans-serif; font-size: 18px; font-weight: 600; color: #e39d44; }
.flavor-card { background: #fff4dc; border: 1px solid #f2e6ce; padding: 21px 22px 20px; }
.flavor-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.flavor-count { border: 1px solid #e8d6b5; color: #ae895a; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.flavor-list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 10px; }
.flavor-item { display: flex; gap: 7px; align-items: center; font-size: 10px; line-height: 1.2; color: #675841; font-weight: 700; }
.flavor-graphic { flex: 0 0 28px; height: 28px; display: grid; place-items: center; }
.flavor-graphic .cookie-svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 1px #7a543b33); }
.wildcard-tip { display: flex; gap: 11px; align-items: center; border-top: 1px solid #e9d8b7; margin-top: 17px; padding-top: 15px; }
.wildcard-tip .brookie-svg { flex: 0 0 45px; width: 45px; height: 45px; }
.wildcard-tip strong { font-size: 13px; color: #664b31; display: block; margin-bottom: 3px; }
.wildcard-tip span { font-size: 11px; color: #8c7458; line-height: 1.4; display: block; }
.real-cookie-card { position: relative; overflow: hidden; padding: 25px; background: var(--blue); color: white; }
.real-cookie-card::after { content: ""; position: absolute; width: 135px; height: 135px; background: radial-gradient(circle, #ffffff16 0 34%, transparent 35% 100%); right: -55px; bottom: -47px; border: 14px solid #ffffff14; border-radius: 50%; }
.real-cookie-spark { position: absolute; top: 13px; right: 21px; color: #ffd17d; font-size: 25px; }
.real-cookie-card p { font-size: 12px; color: #cad8ff; margin: 0 0 5px; }
.real-cookie-card h3 { font-family: "Fredoka", sans-serif; font-weight: 600; line-height: 1.08; font-size: 27px; max-width: 220px; margin: 0 0 17px; }
.real-cookie-card a { position: relative; z-index: 1; display: inline-flex; gap: 13px; align-items: center; color: var(--blue-dark); background: #ffe0a3; text-decoration: none; padding: 10px 13px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.real-cookie-card a:hover { background: #fff0d1; }
.site-footer { width: min(100% - 64px, 1160px); margin: auto auto 0; border-top: 1px solid #dfddda; padding: 21px 0 28px; display: flex; align-items: center; justify-content: space-between; color: #8490a2; gap: 10px; font-size: 11px; }
.site-footer strong { color: var(--blue); }
@keyframes hintGlow { from { background: #ffe99e75; } to { background: #ffdd64dd; } }
@keyframes tileShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes pointsUp { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.8); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -55px) scale(1.2); } }
@keyframes brookieGlint { from { opacity: .4; transform: scale(.72) rotate(-12deg); } to { opacity: 1; transform: scale(1.22) rotate(8deg); } }
@keyframes brookieFlash { 0% { opacity: 0; transform: scale(.98); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.03); } }
@media (max-width: 800px) { .play-layout { grid-template-columns: minmax(0, 500px); } .sidebar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .real-cookie-card { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .masthead { width: min(100% - 30px, 540px); padding: 14px 0; }
  .brand-name { font-size: 17px; gap: 7px; }
  .brand-name small { font-size: 8px; letter-spacing: .18em; margin-top: 4px; }
  .brand-dot { width: 31px; height: 31px; font-size: 20px; border-radius: 8px; }
  .header-cta { font-size: 10px; text-align: right; max-width: 125px; }
  .main-content { width: min(100% - 18px, 500px); padding: 20px 0 32px; }
  .hero-heading { margin-bottom: 21px; }
  .hero-heading h1 { margin: 8px 0 8px; font-size: clamp(50px, 12.7vw, 70px); }
  .hero-heading p { font-size: 12.5px; }
  .eyebrow { font-size: 9px; letter-spacing: .11em; }
  .sparkle { margin: 0 5px; }
  .game-card { border-radius: 20px; padding: 12px; }
  .board-frame { padding: 7px; border-radius: 15px; }
  .board { gap: 4px; }
  .cookie-tile { border-radius: 7px; }
  .scoreboard { padding: 4px 3px 13px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 25px; }
  .time-pill { padding: 9px 11px; font-size: 21px; min-width: 84px; }
  .time-pill svg { width: 16px; }
  .sidebar { grid-template-columns: minmax(0,1fr); }
  .real-cookie-card { grid-column: auto; }
  .game-controls { padding: 12px 2px 1px; }
  .status-message { font-size: 10.5px; max-width: 60%; }
  .site-footer { width: min(100% - 30px, 540px); flex-direction: column; text-align: center; padding: 18px 0 23px; }
}
@media (max-width: 365px) { .board { gap: 3px; } .game-card { padding: 9px; } .board-frame { padding: 6px; } .overlay-card { padding: 19px 15px; } .overlay-card h2 { font-size: 25px; } .overlay-icon { width: 50px; height: 50px; font-size: 30px; margin-bottom: 8px; } .game-controls { align-items: flex-start; } .control-buttons { gap: 5px; } .text-button { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
/* Brand refresh: visual parity with the forthcoming Daddy's Dough site. */
:root{--blue:#2c35f9;--blue-dark:#232de2;--blue-ink:#302f45;--cream:#fff;--gold:#d99c47;--orange:#d99c47;--line:#eae9f2}
body{background:linear-gradient(145deg,#f6f5ff,#fff 58%,#fff6ed);font-family:Inter,system-ui,sans-serif}
.brand-name{font-family:Nunito,system-ui,sans-serif;font-weight:900;font-size:21px;color:var(--blue)}
.official-logo-match{display:block;width:67px;height:61px;object-fit:contain;flex:none}
.masthead{padding:9px 0}
.hero-heading{margin-bottom:19px}
.hero-heading h1,.info-card h2,.overlay-card h2,.real-cookie-card h3{font-family:Nunito,system-ui,sans-serif;font-weight:900}
.hero-heading h1{font-size:clamp(46px,6.7vw,77px);line-height:1.07}
.board-frame{background:linear-gradient(145deg,#3b48ff,#2229b4)}
.primary-button{background:var(--blue);box-shadow:0 5px 0 #1a23a3}
.primary-button:hover{background:#1a26df}
.time-pill{background:#f0f0ff}
.game-card,.info-card,.flavor-card{border-color:#e8e8f6}
.real-cookie-card{background:var(--blue)}
@media(max-width:600px){.official-logo-match{width:53px;height:48px}.masthead{padding:7px 0}.brand-name{font-size:16px}.hero-heading h1{font-size:45px}.hero-heading p{font-size:11.5px}.hero-heading{margin-bottom:13px}}
.overlay-icon img{display:block;width:65px;height:65px;max-width:none;object-fit:contain;filter:drop-shadow(0 3px 2px #674b3e33)}
