:root { --bg-main: #2a3f50; --bg-dark: #1e2d3a; --copper: #d5b39a; --gold: #dfb15b; --text-main: #ffffff; --text-dim: rgba(255, 255, 255, 0.6); --color-red: #ef4444; }
body, html { margin: 0; padding: 0; height: 100%; background-color: var(--bg-main); color: var(--text-main); font-family: 'Roboto', sans-serif; display: flex; flex-direction: column; user-select: none; overflow: hidden; }
.app-container { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 10px 20px; text-align: center; width: 100%; box-sizing: border-box; position: relative; }
.top-btn { position: absolute; top: 15px; background: none; border: 1px solid var(--text-dim); border-radius: 4px; color: var(--text-dim); font-family: 'Oswald', sans-serif; font-size: 0.8rem; padding: 4px 8px; cursor: pointer; z-index: 20; transition: all 0.2s; }
.top-btn:active { color: var(--copper); border-color: var(--copper); }
.lang-toggle { left: 15px; } .info-toggle { right: 15px; }
.lobby-header { width: 100%; display: flex; justify-content: center; }
.app-logo { max-height: 18vh; width: auto; border-radius: 35px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); margin-bottom: 5px; }
.onboarding-logo { max-height: 28vh; margin-top: 40px; }
@media (max-height: 800px) { .dynamic-logo-header { display: none; } #lobbyView { padding-top: 35px; } }
.selection-group { width: 100%; max-width: 400px; margin: 4px 0; }
.selection-group h3 { font-family: 'Oswald', sans-serif; color: var(--text-dim); font-size: 0.95rem; letter-spacing: 1.5px; margin: 0 0 6px 0; text-transform: uppercase; }
.tile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tile { background-color: var(--bg-dark); border: 1px solid rgba(255,255,255,0.05); padding: 15px 6px; border-radius: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text-main); cursor: pointer; transition: all 0.1s ease; text-transform: uppercase; flex: 1 1 calc(33% - 8px); min-width: 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.2; }
.tile.active { background-color: var(--copper); color: var(--bg-dark); border-color: var(--copper); }
.ultimate-mode { color: var(--gold); border-color: rgba(223, 177, 91, 0.3); }
.ultimate-mode.active { background-color: var(--gold); color: var(--bg-dark); border-color: var(--gold); box-shadow: 0 0 15px rgba(223, 177, 91, 0.6); }
.tourney-tile { flex: 1 1 100%; color: var(--copper); border-color: rgba(213, 179, 154, 0.3); font-size: 1.2rem; padding: 16px; }
.tourney-tile.active { background-color: var(--copper); color: var(--bg-dark); }
.tile.disabled { 
  opacity: 0.5; 
  filter: grayscale(100%); 
  position: relative; /* Dôležité pre absolútnu pozíciu zámku */
}

/* Malý vizuálny zámok v rohu pre zablokované dlaždice */
.tile.disabled::after {
  content: "🔒";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.8rem;
  opacity: 0.8;
}
.onboarding-content { max-width: 90%; margin: auto; }
.onboarding-content h1 { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--copper); text-transform: uppercase; }
.onboarding-content p { color: var(--text-main); font-size: 1.1rem; line-height: 1.5; font-weight: 300; }
.hint-header { margin-top: 20px; }
.hint-header h1 { font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: var(--copper); margin: 0; text-transform: uppercase; }
.hint-header h2 { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 8vw, 3rem); font-weight: 900; color: #fff; margin: 10px 0; text-transform: uppercase; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hint-content { width: 95%; margin: 0 auto; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.hint-content p { color: var(--text-main); font-size: clamp(1.2rem, 5.5vw, 1.8rem); line-height: 1.35; font-weight: 400; margin: 0; text-align: center; }
.btn-primary { background-color: var(--copper); color: var(--bg-dark); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.5rem; border: none; border-radius: 12px; padding: 14px 24px; width: 90%; max-width: 400px; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: all 0.1s ease; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { background-color: var(--bg-dark); color: rgba(255,255,255,0.1); box-shadow: none; cursor: not-allowed; border: 1px solid rgba(255,255,255,0.02); }
.btn-secondary { background-color: transparent; color: var(--copper); font-family: 'Oswald', sans-serif; font-size: 1.1rem; border: 1px solid var(--copper); border-radius: 8px; padding: 8px 20px; cursor: pointer; text-transform: uppercase; margin-bottom: 12px; transition: all 0.1s ease; letter-spacing: 1px; }
.btn-secondary:active { background-color: rgba(213, 179, 154, 0.1); }
.btn-secondary-small { background: transparent; color: var(--copper); border: 1px solid var(--copper); border-radius: 8px; padding: 8px 20px; font-family: 'Oswald', sans-serif; cursor: pointer; text-transform: uppercase; margin-top: 20px; transition: all 0.2s; }
.btn-secondary-small:active { border-color: var(--copper); color: var(--copper); }
.controls-vertical { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 5px; }
.action-area { width: 100%; display: flex; justify-content: center; margin-bottom: 5px; }
.btn-top-corner { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; opacity: 0.5; transition: opacity 0.2s ease; z-index: 10; padding: 5px; }
.btn-top-corner:active { opacity: 1; color: var(--color-red); }
.btn-top-corner .x-icon { font-size: 1.6rem; font-weight: bold; line-height: 1; }
.btn-top-corner .x-text { font-family: 'Oswald', sans-serif; font-size: 0.65rem; letter-spacing: 1px; margin-top: 2px; }

/* FIX GRID HLAVIČKY (ZABRAŇUJE SKÁKANIU) */
.timer-header { margin-top: 10px; display: grid; grid-template-columns: 1fr; justify-items: center; }
.timer-header h1 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.2rem; margin: 0 0 5px 0; letter-spacing: 1.5px; text-transform: uppercase; color: var(--copper); opacity: 0.8; grid-column: 1; grid-row: 1; }
.timer-header h2 { font-family: 'Oswald', sans-serif; color: var(--text-main); font-size: 3.5rem; font-weight: 900; margin: 0 0 15px 0; letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.5); grid-column: 1; grid-row: 2; }
#blockShortInstructions { color: #ffffff; font-weight: 500; font-size: clamp(1.2rem, 5vmin, 2.2rem); width: 98%; margin: 0; line-height: 1.3; min-height: 80px; display: flex; align-items: center; justify-content: center; text-align: center; grid-column: 1; grid-row: 3; align-self: center; }
#coachTipBox { grid-column: 1; grid-row: 3; align-self: center; margin: 0; width: 90%; max-width: 400px; box-sizing: border-box; transition: opacity 0.3s ease; z-index: 5; }

.timer-wrapper { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 12vh auto 10px auto; }

/* FIX ŽLTÉHO TEXTU (ZALOMENIE + VEĽKOSŤ) */
.active-target {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 12vw, 80px);
  font-weight: 900;
  color: var(--gold);
  z-index: 2;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  white-space: normal; 
  width: 90vw;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.1;
  transition: opacity 0.3s ease;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2vh;
}
@media (min-width: 600px) { 
  .active-target { font-size: 80px; margin-bottom: 15px; } 
}

#completionRing { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60vw; height: 60vw; max-width: 240px; max-height: 240px; z-index: 0; pointer-events: none; opacity: 1; }
.ring-animate .mask-circle { animation: drawMask 2s linear forwards; }
@keyframes drawMask { to { stroke-dashoffset: 0; } }
.timer { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 18vw; line-height: 1; margin: 0; position: relative; z-index: 1; transition: color 0.3s ease; color: var(--text-dim); height: 1em; display: flex; align-items: center; justify-content: center; }
@media (min-width: 600px) { .timer { font-size: 100px; } }
.timer.red-zone { color: var(--color-red); }
.timer.paused { animation: pulse-pause 2s infinite ease-in-out; }
.timer.alert-pulse { animation: pulse-red 1s infinite ease-in-out; }
@keyframes pulse-pause { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse-red { 0%, 100% { color: var(--color-red); transform: scale(1); } 50% { color: #ffffff; transform: scale(1.04); } }
.coach-tip { background-color: var(--bg-dark); border: 1px solid rgba(213, 179, 154, 0.2); border-radius: 12px; padding: 15px 20px; margin: 15px auto; max-width: 85%; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.coach-tip-label { display: block; font-family: 'Oswald', sans-serif; color: var(--copper); font-size: 0.9rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 6px; }
.coach-tip p { margin: 0; font-style: italic; color: var(--text-dim); font-size: 0.95rem; line-height: 1.4; }

/* FIX ZACHOVANIA PRIESTORU BEZ SKÁKANIA */
.invisible { visibility: hidden !important; opacity: 0 !important; pointer-events: none; }
.hidden { display: none !important; }

.seal-area { padding: 16px 15px; text-align: center; font-size: 10px; color: rgba(255, 255, 255, 0.5); line-height: 1.4; border-top: 1px solid rgba(213, 179, 154, 0.15); background-color: var(--bg-dark); box-sizing: border-box; width: 100%; }
.seal-area strong { color: var(--copper); font-weight: bold; }
.seal-sub { display: block; margin-top: 2px; opacity: 0.7; }

/* --- NOVÉ ŠTÝLY PRE PRO ÚČET A ÚVODNÚ OBRAZOVKU --- */

.btn-green-primary {
  background-color: #22c55e !important;
  color: var(--bg-dark) !important;
}

.top-btn.premium-active {
  background-color: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(223, 177, 91, 0.4);
}

/* --- AUTH MODAL STYLES --- */
.auth-tab { flex: 1; background: none; border: none; color: var(--text-dim); font-family: 'Oswald', sans-serif; font-size: 1.2rem; padding: 10px; cursor: pointer; transition: all 0.2s; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--copper); border-bottom: 2px solid var(--copper); }
.auth-input { width: 100%; background: var(--bg-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 12px; margin-bottom: 10px; color: #fff; font-family: 'Roboto', sans-serif; font-size: 1rem; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.auth-input:focus { border-color: var(--copper); }
.auth-input::placeholder { color: var(--text-dim); }