/* Hawks Hangman - Arcade Edition v1.0.0 */
/* {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 {
  --hh-bg:        #08090F;
  --hh-surface:   #0E1018;
  --hh-panel:     #161C2C;
  --hh-border:    #1E2A48;
  --hh-gold:      #F5C828;
  --hh-blue:      #7CDBF9;
  --hh-red:       #CC1400;
  --hh-green:     #78E050;
  --hh-purple:    #E87800;
  --hh-text:      #e8e8f8;
  --hh-dim:       #5a5a7a;
  --hh-scaffold:  #F5C828;
  --hh-body-col:  #7CDBF9;
  --hh-font:      'Orbitron', monospace;
  --hh-body-font: 'Rajdhani', sans-serif;
}

/* ── RESET & WRAP ──────────────────────────────── */
.hh-wrap *, .hh-wrap *::before, .hh-wrap *::after { box-sizing: border-box; }
.hh-wrap button { font-family: var(--hh-font); cursor: pointer; line-height: 1; border: none; }

.hh-wrap {
  font-family: var(--hh-body-font);
  background: var(--hh-bg);
  color: var(--hh-text);
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--hh-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 80px rgba(245,200,40,0.08);
}

.hh-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  gap: 16px;
  min-height: 480px;
  justify-content: center;
}

/* ── START SCREEN ──────────────────────────────── */
.hh-start {
  background: radial-gradient(ellipse at 50% -10%, #1e1638 0%, var(--hh-bg) 65%);
}

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

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

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

.hh-logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }

.hh-logo-hawks {
  font-family: var(--hh-font);
  font-size: 36px;
  font-weight: 900;
  color: var(--hh-gold);
  letter-spacing: 6px;
  text-shadow: 0 0 24px rgba(245,200,40,0.6);
}

.hh-logo-hang {
  font-family: var(--hh-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--hh-blue);
  letter-spacing: 6px;
  text-shadow: 0 0 16px rgba(124,219,249,0.5);
}

.hh-logo-sub {
  font-family: var(--hh-font);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--hh-dim);
  margin-top: 2px;
}

.hh-cat-label {
  font-family: var(--hh-font);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--hh-dim);
}

.hh-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.hh-cat-btn {
  background: var(--hh-panel);
  border: 1px solid var(--hh-border) !important;
  border-radius: 8px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--hh-text);
  font-family: var(--hh-font);
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  transition: all 0.15s;
}

.hh-cat-btn:hover {
  border-color: var(--hh-gold) !important;
  background: rgba(245,200,40,0.1);
  color: var(--hh-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,200,40,0.2);
}

.hh-cat-icon { font-size: 22px; }

.hh-cat-random {
  flex-direction: row !important;
  gap: 8px !important;
  width: 100%;
  padding: 12px !important;
  font-size: 11px !important;
  border-color: var(--hh-purple) !important;
  color: var(--hh-purple) !important;
}

.hh-cat-random:hover {
  border-color: var(--hh-purple) !important;
  background: rgba(232,120,0,0.1) !important;
  color: var(--hh-purple) !important;
  box-shadow: 0 4px 20px rgba(232,120,0,0.2) !important;
}

/* ── LOADING ───────────────────────────────────── */
.hh-loading { gap: 20px; }

.hh-load-eagle {
  font-size: 52px;
  animation: hh-glow-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes hh-glow-pulse {
  from { filter: drop-shadow(0 0 8px rgba(245,200,40,0.3));  transform: scale(0.92); }
  to   { filter: drop-shadow(0 0 28px rgba(245,200,40,0.9)); transform: scale(1.08); }
}

.hh-load-text {
  font-family: var(--hh-font);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--hh-gold);
}

/* ── GAME SCREEN ───────────────────────────────── */
.hh-game {
  padding: 14px 16px 20px;
  gap: 10px;
  justify-content: flex-start;
}

.hh-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.hh-icon-btn:hover { background: var(--hh-border); }

.hh-cat-badge {
  font-family: var(--hh-font);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--hh-gold);
  background: rgba(245,200,40,0.1);
  border: 1px solid rgba(245,200,40,0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

.hh-streak {
  font-family: var(--hh-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--hh-gold);
  min-width: 60px;
  text-align: right;
}

/* ── GALLOWS SVG ───────────────────────────────── */
.hh-gallows-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.hh-gallows-svg {
  width: 180px;
  height: 180px;
  display: block;
}

.hh-scaffold {
  stroke: var(--hh-scaffold);
  stroke-width: 4;
  filter: drop-shadow(0 0 4px rgba(245,200,40,0.5));
}

.hh-brace {
  stroke-width: 3;
  opacity: 0.6;
}

/* Body parts — hidden until wrong guess reveals them */
.hh-part {
  stroke: var(--hh-body-col);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 6px rgba(124,219,249,0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hh-part.hh-visible {
  opacity: 1;
  animation: hh-part-appear 0.4s ease;
}

@keyframes hh-part-appear {
  from { opacity: 0; transform: scale(0.5); transform-origin: 150px 45px; }
  to   { opacity: 1; transform: scale(1); }
}

/* Head uses fill */
.hh-head { fill: none; }
.hh-head.hh-visible { fill: none; }

/* Lives row */
.hh-lives-row {
  display: flex;
  gap: 6px;
}

.hh-life {
  font-size: 18px;
  transition: all 0.3s;
}

.hh-life.hh-lost {
  filter: grayscale(1) opacity(0.3);
  transform: scale(0.8);
}

/* ── HINT ──────────────────────────────────────── */
.hh-hint-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--hh-panel);
  border: 1px solid var(--hh-border);
  border-radius: 6px;
  padding: 8px 12px;
}

.hh-hint-label {
  font-family: var(--hh-font);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--hh-dim);
  flex-shrink: 0;
}

.hh-hint-text {
  font-family: var(--hh-body-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--hh-blue);
}

/* ── WORD DISPLAY ──────────────────────────────── */
.hh-word-display {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  min-height: 52px;
  width: 100%;
}

.hh-letter-tile {
  width: 34px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--hh-gold);
  font-family: var(--hh-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--hh-text);
  text-transform: uppercase;
  position: relative;
  transition: all 0.2s;
}

.hh-letter-tile.hh-revealed {
  color: var(--hh-green);
  border-bottom-color: var(--hh-green);
  animation: hh-tile-pop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.hh-letter-tile.hh-space {
  width: 16px;
  border-bottom: none;
}

@keyframes hh-tile-pop {
  0%  { transform: scale(0.6) translateY(8px); opacity: 0.3; }
  100%{ transform: scale(1) translateY(0);     opacity: 1; }
}

/* ── WRONG LETTERS ─────────────────────────────── */
.hh-wrong-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  width: 100%;
  padding: 0 4px;
}

.hh-wrong-label {
  font-family: var(--hh-font);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--hh-dim);
  flex-shrink: 0;
}

.hh-wrong-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hh-wrong-letter {
  font-family: var(--hh-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--hh-red);
  background: rgba(204,20,0,0.12);
  border: 1px solid rgba(204,20,0,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  animation: hh-wrong-in 0.25s ease;
}

@keyframes hh-wrong-in {
  from { transform: scale(1.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── KEYBOARD ──────────────────────────────────── */
.hh-keyboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.hh-kb-row {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.hh-key {
  width: 36px;
  height: 40px;
  background: var(--hh-panel);
  border: 1px solid var(--hh-border) !important;
  border-radius: 6px;
  font-family: var(--hh-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--hh-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  padding: 0;
}

.hh-key:hover:not(:disabled) {
  background: rgba(245,200,40,0.15);
  border-color: var(--hh-gold) !important;
  color: var(--hh-gold);
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(245,200,40,0.25);
}

.hh-key:active:not(:disabled) { transform: scale(0.92); }

.hh-key.hh-key-correct {
  background: rgba(120,224,80,0.15) !important;
  border-color: var(--hh-green) !important;
  color: var(--hh-green) !important;
  cursor: default;
}

.hh-key.hh-key-wrong {
  background: rgba(204,20,0,0.08) !important;
  border-color: rgba(204,20,0,0.2) !important;
  color: rgba(204,20,0,0.4) !important;
  cursor: default;
}

/* ── MODALS ────────────────────────────────────── */
.hh-modal {
  position: absolute;
  inset: 0;
  background: rgba(12,12,24,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: hh-modal-in 0.25s ease;
}

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

.hh-modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--hh-panel);
  border-radius: 14px;
  padding: 32px 28px;
  width: 90%;
  max-width: 300px;
  border: 2px solid var(--hh-gold);
  box-shadow: 0 0 40px rgba(245,200,40,0.2), 0 20px 60px rgba(0,0,0,0.5);
}

.hh-modal-lose {
  border-color: var(--hh-red);
  box-shadow: 0 0 40px rgba(204,20,0,0.2), 0 20px 60px rgba(0,0,0,0.5);
}

.hh-modal-eagle { font-size: 48px; animation: hh-float 2s ease-in-out infinite; }
.hh-modal-skull { font-size: 48px; animation: hh-shake-skull 0.5s ease 0.2s; }

@keyframes hh-shake-skull {
  0%,100%{ transform: rotate(0); }
  25%    { transform: rotate(-12deg); }
  75%    { transform: rotate(12deg); }
}

.hh-modal-title {
  font-family: var(--hh-font);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--hh-gold);
  text-shadow: 0 0 20px rgba(245,200,40,0.5);
}

.hh-modal-lose .hh-modal-title {
  color: var(--hh-red);
  text-shadow: 0 0 20px rgba(204,20,0,0.5);
}

.hh-modal-sub {
  font-size: 13px;
  color: var(--hh-dim);
  letter-spacing: 1px;
}

.hh-modal-word {
  font-family: var(--hh-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--hh-blue);
  letter-spacing: 4px;
  text-align: center;
}

.hh-modal-streak {
  font-family: var(--hh-font);
  font-size: 13px;
  color: var(--hh-gold);
  letter-spacing: 2px;
}

.hh-modal-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--hh-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.15s;
  border: 2px solid transparent !important;
}

.hh-btn-next {
  background: var(--hh-gold);
  color: #000;
}

.hh-btn-next:hover {
  background: #FFD040;
  box-shadow: 0 0 20px rgba(245,200,40,0.5);
  transform: translateY(-1px);
}

.hh-btn-menu {
  background: transparent;
  border-color: var(--hh-border) !important;
  color: var(--hh-dim);
}

.hh-btn-menu:hover {
  border-color: var(--hh-blue) !important;
  color: var(--hh-blue);
}

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

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

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 480px) {
  .hh-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hh-cat-btn  { font-size: 8px; padding: 8px 4px; }
  .hh-cat-icon { font-size: 18px; }
  .hh-key      { width: 30px; height: 36px; font-size: 11px; }
  .hh-kb-row   { gap: 3px; }
  .hh-keyboard { gap: 4px; }
  .hh-letter-tile { width: 28px; height: 38px; font-size: 17px; }
  .hh-gallows-svg { width: 150px; height: 150px; }
  .hh-logo-hawks  { font-size: 28px; }
  .hh-logo-hang   { font-size: 16px; }
}
