/* Hawks Sudoku - Arcade Edition */
/* {H}awks · https://the-hawks.net */


/* ── HAWKS ARCADE LOGO (v1.5) ─────────────────── */
.ha-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
}
.ha-logo-img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245,200,40,0.4));
  animation: ha-logo-float 3s ease-in-out infinite;
}
@keyframes ha-logo-float {
  0%,100%{ transform: translateY(0) scale(1); }
  50%    { transform: translateY(-6px) scale(1.02); }
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --hs-bg:         #08090F;
  --hs-surface:    #0E1018;
  --hs-panel:      #161C2C;
  --hs-border:     #1E2A48;
  --hs-accent:     #F5C828;
  --hs-accent2:    #7CDBF9;
  --hs-accent3:    #E87800;
  --hs-given:      #F5C828;
  --hs-player:     #7CDBF9;
  --hs-error:      #CC1400;
  --hs-success:    #78E050;
  --hs-text:       #e8e8f0;
  --hs-text-dim:   #6a6a8a;
  --hs-cell-size:  52px;
  --hs-font-main:  'Orbitron', monospace;
  --hs-font-body:  'Rajdhani', sans-serif;
  --hs-radius:     8px;
  --hs-glow-gold:  0 0 20px rgba(245,200,40,0.5);
  --hs-glow-blue:  0 0 20px rgba(124,219,249,0.4);
  --hs-glow-purple:0 0 20px rgba(232,120,0,0.4);
}

/* ── CONTAINER ─────────────────────────────────── */
.hs-wrap {
  font-family: var(--hs-font-body);
  background: var(--hs-bg);
  color: var(--hs-text);
  border-radius: 16px;
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--hs-border);
  box-shadow: 0 0 60px rgba(245,200,40,0.1), 0 0 120px rgba(124,219,249,0.05);
}

/* Hard reset so WordPress themes can't bleed in */
.hs-wrap *, .hs-wrap *::before, .hs-wrap *::after {
  box-sizing: border-box;
}

.hs-wrap button {
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}

/* ── SCREENS ───────────────────────────────────── */
.hs-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  min-height: 420px;
  justify-content: center;
  gap: 16px;
}

/* ── START SCREEN ──────────────────────────────── */
.hs-screen-start {
  background: radial-gradient(ellipse at 50% 0%, #1e1630 0%, var(--hs-bg) 70%);
}

.hs-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.hs-eagle {
  font-size: 56px;
  filter: drop-shadow(0 0 24px rgba(245,200,40,0.7));
  animation: hs-float 3s ease-in-out infinite;
}

@keyframes hs-float {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.hs-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.hs-title-hawks {
  font-family: var(--hs-font-main);
  font-size: 38px;
  font-weight: 900;
  color: var(--hs-accent);
  letter-spacing: 6px;
  text-shadow: var(--hs-glow-gold);
}

.hs-title-sudoku {
  font-family: var(--hs-font-main);
  font-size: 24px;
  font-weight: 700;
  color: var(--hs-accent2);
  letter-spacing: 8px;
  text-shadow: var(--hs-glow-blue);
}

.hs-subtitle {
  font-family: var(--hs-font-main);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--hs-text-dim);
  margin-top: 2px;
}

.hs-diff-label {
  font-family: var(--hs-font-main);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--hs-text-dim);
  margin-bottom: 4px;
}

.hs-diff-btns {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.hs-diff-btn {
  flex: 1;
  background: var(--hs-panel);
  border: 2px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  color: var(--hs-text);
}

.hs-diff-btn:hover { transform: translateY(-3px); }

.hs-btn-easy:hover   { border-color: var(--hs-success); box-shadow: 0 0 20px rgba(120,224,80,0.3); }
.hs-btn-medium:hover { border-color: var(--hs-accent);  box-shadow: var(--hs-glow-gold); }
.hs-btn-hard:hover   { border-color: var(--hs-error);   box-shadow: 0 0 20px rgba(204,20,0,0.3); }

.hs-diff-name {
  font-family: var(--hs-font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.hs-btn-easy   .hs-diff-name { color: var(--hs-success); }
.hs-btn-medium .hs-diff-name { color: var(--hs-accent); }
.hs-btn-hard   .hs-diff-name { color: var(--hs-error); }

.hs-diff-sub {
  font-size: 11px;
  color: var(--hs-text-dim);
  font-family: var(--hs-font-body);
}

.hs-coin-strip {
  display: flex;
  gap: 12px;
  font-size: 22px;
  opacity: 0.6;
  margin-top: 4px;
  animation: hs-pulse 2s ease-in-out infinite;
}

@keyframes hs-pulse {
  0%,100%{ opacity:0.6; }
  50%{ opacity:1; }
}

/* ── LOADING SCREEN ────────────────────────────── */
.hs-screen-loading {
  gap: 20px;
}

.hs-loading-eagle {
  font-size: 52px;
  animation: hs-spin-pulse 1s ease-in-out infinite alternate;
}

@keyframes hs-spin-pulse {
  from{ filter: drop-shadow(0 0 10px rgba(245,200,40,0.3)); transform:scale(0.9); }
  to  { filter: drop-shadow(0 0 30px rgba(245,200,40,0.9)); transform:scale(1.1); }
}

.hs-loading-text {
  font-family: var(--hs-font-main);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--hs-accent);
}

.hs-loading-bar {
  width: 200px;
  height: 4px;
  background: var(--hs-panel);
  border-radius: 2px;
  overflow: hidden;
}

.hs-loading-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hs-accent), var(--hs-accent2));
  animation: hs-load 0.8s ease-in-out infinite alternate;
}

@keyframes hs-load {
  from{ width: 20%; margin-left: 0; }
  to  { width: 60%; margin-left: 40%; }
}

/* ── GAME SCREEN ───────────────────────────────── */
.hs-screen-game {
  padding: 16px 16px 20px;
  gap: 14px;
}

.hs-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.hs-header-left, .hs-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.hs-header-right { justify-content: flex-end; }

.hs-btn-icon {
  background: var(--hs-panel);
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--hs-text);
}

.hs-btn-icon:hover { background: var(--hs-border); transform: scale(1.1); }

.hs-diff-badge {
  font-family: var(--hs-font-main);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.hs-badge-easy   { background: rgba(120,224,80,0.15); color: var(--hs-success); border:1px solid rgba(120,224,80,0.3); }
.hs-badge-medium { background: rgba(245,200,40,0.15);  color: var(--hs-accent);  border:1px solid rgba(245,200,40,0.3); }
.hs-badge-hard   { background: rgba(204,20,0,0.15);   color: var(--hs-error);   border:1px solid rgba(204,20,0,0.3); }

.hs-header-center { text-align: center; }

.hs-timer {
  font-family: var(--hs-font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--hs-accent2);
  letter-spacing: 3px;
  text-shadow: var(--hs-glow-blue);
  min-width: 80px;
  text-align: center;
}

.hs-mistakes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.hs-mistakes-label {
  font-family: var(--hs-font-main);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--hs-text-dim);
}

.hs-mistakes-count {
  font-family: var(--hs-font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--hs-error);
}

/* ── BOARD ─────────────────────────────────────── */
.hs-board-wrap {
  background: var(--hs-surface);
  border-radius: 10px;
  padding: 10px;
  border: 2px solid var(--hs-border);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4), var(--hs-glow-gold);
}

.hs-board {
  display: grid;
  grid-template-columns: repeat(3, calc(var(--hs-cell-size) * 3 + 2px));
  grid-template-rows:    repeat(3, calc(var(--hs-cell-size) * 3 + 2px));
  gap: 3px;
  background: var(--hs-accent);
  border: 3px solid var(--hs-accent);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Each 3x3 box */
.hs-box {
  display: grid;
  grid-template-columns: repeat(3, var(--hs-cell-size));
  grid-template-rows:    repeat(3, var(--hs-cell-size));
  gap: 1px;
  background: rgba(255,255,255,0.2);
}

/* Cells */
.hs-cell {
  width: var(--hs-cell-size);
  height: var(--hs-cell-size);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  background: var(--hs-surface);
  transition: background 0.12s;
  font-family: var(--hs-font-main);
  font-size: 18px;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}

/* Default cell text color so theme can't override */
.hs-cell {
  color: var(--hs-text);
}

/* Given cells */
.hs-cell.hs-given {
  color: var(--hs-given) !important;
  cursor: default;
}

/* Player cells */
.hs-cell.hs-player {
  color: var(--hs-player) !important;
}

/* States */
.hs-cell.hs-active {
  background: #2a4a3a !important;
  box-shadow: inset 0 0 0 2px #4ade80;
}

.hs-cell.hs-highlighted {
  background: #1e2a22 !important;
}

.hs-cell.hs-same-num {
  background: #2a3a1e !important;
}

.hs-cell.hs-error {
  color: var(--hs-error) !important;
  background: rgba(204,20,0,0.15) !important;
  animation: hs-shake 0.3s ease;
}

.hs-cell.hs-revealed {
  color: var(--hs-accent3) !important;
}

@keyframes hs-shake {
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-3px); }
  75%{ transform: translateX(3px); }
}

.hs-cell.hs-correct-flash {
  animation: hs-correct-flash 0.4s ease;
}

@keyframes hs-correct-flash {
  0%{ background: rgba(120,224,80,0.3); }
  100%{ background: transparent; }
}

/* Notes */
.hs-notes-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(3,1fr);
  width: 100%;
  height: 100%;
  padding: 2px;
  gap: 0;
}

.hs-note {
  font-size: 9px;
  font-family: var(--hs-font-main);
  color: var(--hs-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── NUMBER PAD ────────────────────────────────── */
.hs-numpad {
  display: grid;
  grid-template-columns: repeat(10,1fr);
  gap: 6px;
  width: 100%;
  max-width: 488px;
}

.hs-num-btn {
  aspect-ratio: 1;
  background: var(--hs-panel);
  border: 2px solid var(--hs-border);
  border-radius: 6px;
  font-family: var(--hs-font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--hs-accent2);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hs-num-btn:hover {
  background: rgba(124,219,249,0.15);
  border-color: var(--hs-accent2);
  transform: scale(1.08);
  box-shadow: var(--hs-glow-blue);
}

.hs-num-btn:active { transform: scale(0.95); }

.hs-num-btn.hs-num-used {
  opacity: 0.3;
  cursor: default;
}

.hs-num-erase {
  color: var(--hs-error) !important;
  font-size: 16px;
}

.hs-num-erase:hover {
  border-color: var(--hs-error) !important;
  background: rgba(204,20,0,0.15) !important;
  box-shadow: 0 0 15px rgba(204,20,0,0.3) !important;
}

/* ── ACTION BUTTONS ────────────────────────────── */
.hs-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.hs-action-btn {
  flex: 1;
  background: var(--hs-panel);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 10px 4px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  color: var(--hs-text);
}

.hs-action-btn:hover {
  background: rgba(245,200,40,0.1);
  border-color: rgba(245,200,40,0.4);
  transform: translateY(-2px);
}

.hs-action-icon { font-size: 18px; }

.hs-action-label {
  font-family: var(--hs-font-main);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--hs-text-dim);
}

#hs-btn-notes.hs-notes-active {
  border-color: var(--hs-accent3);
  background: rgba(232,120,0,0.1);
}

#hs-btn-notes.hs-notes-active .hs-action-label { color: var(--hs-accent3); }

/* ── MODALS ────────────────────────────────────── */
.hs-modal {
  position: absolute;
  inset: 0;
  background: rgba(10,10,20,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: hs-modal-in 0.3s ease;
}

@keyframes hs-modal-in {
  from{ opacity:0; transform:scale(0.9); }
  to  { opacity:1; transform:scale(1); }
}

.hs-modal-inner {
  background: var(--hs-panel);
  border: 2px solid var(--hs-accent);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--hs-glow-gold), 0 20px 60px rgba(0,0,0,0.6);
  max-width: 320px;
  width: 90%;
}

.hs-modal-defeat { border-color: var(--hs-error); box-shadow: 0 0 30px rgba(204,20,0,0.4); }

.hs-win-eagle, .hs-defeat-icon { font-size: 52px; }

.hs-win-eagle { animation: hs-float 2s ease-in-out infinite; }

.hs-win-title {
  font-family: var(--hs-font-main);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--hs-accent);
  text-shadow: var(--hs-glow-gold);
}

.hs-modal-defeat .hs-win-title { color: var(--hs-error); }

.hs-defeat-sub {
  font-size: 14px;
  color: var(--hs-text-dim);
  letter-spacing: 2px;
}

.hs-win-stats {
  display: flex;
  gap: 20px;
}

.hs-win-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hs-stat-val {
  font-family: var(--hs-font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--hs-accent2);
}

.hs-stat-lbl {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--hs-text-dim);
}

.hs-win-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.hs-win-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--hs-font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}

.hs-win-btn-new {
  background: var(--hs-accent);
  color: #000;
}

.hs-win-btn-new:hover {
  background: #FFD040;
  box-shadow: var(--hs-glow-gold);
  transform: translateY(-1px);
}

.hs-win-btn-home {
  background: transparent;
  border-color: var(--hs-border);
  color: var(--hs-text-dim);
}

.hs-win-btn-home:hover {
  border-color: var(--hs-accent2);
  color: var(--hs-accent2);
}

/* ── CONFETTI PARTICLES ──────────────────────────*/
.hs-confetti {
  position: fixed;
  width: 10px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  animation: hs-fall linear forwards;
  z-index: 9999;
}

@keyframes hs-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 520px) {
  :root { --hs-cell-size: calc((100vw - 100px) / 9); }

  .hs-numpad { gap: 4px; }
  .hs-num-btn { font-size: 16px; border-radius: 4px; }
  .hs-title-hawks  { font-size: 30px; }
  .hs-title-sudoku { font-size: 18px; }
  .hs-eagle        { font-size: 44px; }
  .hs-timer        { font-size: 18px; }
  .hs-action-btn   { padding: 8px 2px 6px; }
  .hs-action-icon  { font-size: 15px; }
  .hs-action-label { font-size: 8px; }
}

@media (max-width: 360px) {
  :root { --hs-cell-size: calc((100vw - 80px) / 9); }
  .hs-cell { font-size: 14px; }
  .hs-note { font-size: 7px; }
}
