:root{
  --bg:#0b0d12;
  --bg-soft:#121622;
  --card:#161b2e;
  --border:rgba(255,255,255,.08);
  --text:#e6e9f0;
  --muted:#9aa4bf;
  --brand:#6c7cff;
  --brand-2:#4fd1c5;
  --radius:16px;
  /* Compatibility */
  --fg: var(--text);
  --accent: var(--brand);
  --success: #39d98a;
  --danger: #ff6b6b;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    background: var(--bg);
    color: var(--fg)
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    position: relative
}

h1 {
    margin: 0 0 16px 0
}

.card {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px
}

.card input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a2f36;
    background: #0c0f13;
    color: var(--fg)
}

.card button,
.controls button,
#sendBtn,
#loadBtn,
#playBtn,
#pauseBtn,
#seekBtn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer
}

.card button:hover,
.controls button:hover,
#sendBtn:hover {
    opacity: .9
}

.status {
    margin-top: 8px;
    color: var(--muted)
}

.room .room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}
.copyable{cursor:pointer}
.copyable.copied::after{content:"Copied";margin-left:8px;color:var(--success);font-size:.9rem}
#copyLinkBtn{margin-left:8px;background:var(--accent);color:#fff;border:none;padding:6px 10px;border-radius:8px;cursor:pointer}
#copyLinkBtn.copied::after{content:"Copied";margin-left:8px;color:var(--success);font-size:.9rem}
/* Match Select Media button thickness to Copy link */
#moviesBtn{ padding:6px 10px; border-radius:8px }

.room .room-main {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 16px;
    align-items: start
}

.player-section {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    position: relative
}

.player-shell{
    position: relative;
}

#player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Ensure the YouTube iframe fills the container */
#player iframe, #player video, #player .universal-iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain;
}
.player-fill #player {
    height: 72vh;
    aspect-ratio: auto;
}
.player-fill #player iframe, .player-fill #player video, .player-fill #player .universal-iframe {
    object-fit: contain;
}

.player-empty{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
    pointer-events:auto;
    background: radial-gradient(600px 280px at 10% 0%, rgba(108,124,255,0.22), transparent 60%),
                radial-gradient(600px 280px at 90% 0%, rgba(79,209,197,0.20), transparent 60%),
                #05060b;
}
.player-empty-inner{
    text-align:center;
    max-width:420px;
    padding:24px 22px;
    border-radius:18px;
    background: rgba(4,6,16,0.92);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.65);
}
.player-empty-inner h2{
    margin:0 0 8px;
    font-size:1.4rem;
}
.player-empty-inner p{
    margin:0 0 14px;
    color: var(--muted);
    font-size:0.95rem;
}
.player-empty-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
}
.player-empty.hidden{
    display:none;
}

#game-container {
    width: 100%;
    height: 100%;
    background: var(--game-bg, #0b0d12);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: none;
}

.player-fill #game-container{height:72vh}

#game-ui-root {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--game-fg, #e6e9f0);
}

#game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 16px;
    transition: all 0.2s;
}

.game-close-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
    border-color: transparent;
}

.game-active #player { display: none !important; }
.game-active #game-container { display: flex !important; }

.game-ui {
    color: #fff;
    font-family: inherit;
    z-index: 10;
}

.game-status-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-players-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.game-player-item {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-countdown {
    font-size: 6rem;
    font-weight: 900;
    color: var(--brand);
    text-shadow: 0 0 20px rgba(108,124,255,0.4);
    animation: gamePulse 1s infinite;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.game-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
    border-color: var(--brand);
}

.game-card-icon {
    font-size: 2.5rem;
}

.game-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

@keyframes gamePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

#riddle-game-root {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #0b0d12;
    color: #e6e9f0;
}

.riddle-scoreboard {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.riddle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.riddle-round-wrap{
    width: 80%;
    max-width: 520px;
    margin-bottom: 2px;
}
.riddle-round-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    font-size: 0.95rem;
    color: var(--muted);
}
.riddle-round-meta strong{
    color: var(--fg);
    font-weight: 800;
}
.riddle-round-bar{
    width: 100%;
    height: 8px;
    margin-top: 8px;
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
}
.riddle-round-fill{
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-2), var(--brand));
    border-radius: 999px;
    transition: width 250ms ease;
}

.champion-card{
    background: linear-gradient(135deg, rgba(108,124,255,0.95), rgba(57,217,138,0.85));
    padding: 34px 28px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    max-width: 520px;
    width: min(92%, 520px);
    text-align: center;
    animation: winPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.champion-eyebrow{
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.champion-title{
    margin: 0 0 8px 0;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 900;
}
.champion-subtitle{
    margin: 0 0 16px 0;
    opacity: 0.95;
    font-weight: 600;
}
.champion-btn{
    margin-top: 18px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    background: #fff;
    color: #0b0d12;
    border: none;
}
.champion-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.riddle-text {
    font-size: 2rem;
    font-weight: 700;
    max-width: 80%;
    color: inherit;
}

.riddle-timer {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand);
}

.riddle-progress-bar {
    width: 80%;
    max-width: 400px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.riddle-progress {
    width: 100%;
    height: 100%;
    background: var(--brand);
    transform-origin: left;
    transition: width 1s linear;
}

.riddle-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.riddle-winner {
    font-size: 1.5rem;
    color: var(--success);
}

.riddle-answer-reveal {
    font-size: 1.2rem;
}

#riddle-game-over {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

@keyframes countdown {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

#riddle-scoreboard {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

#riddle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#riddle-text {
    font-size: 2rem;
    font-weight: 700;
    max-width: 80%;
}

#riddle-timer {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand);
}

.riddle-answer-reveal {
    font-size: 1.2rem;
}

#riddle-game-over {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#riddle-final-scores {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.5rem;
}

#riddle-new-game-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.app-card--riddle {
    background: linear-gradient(135deg, #8a54ff, #6c7cff);
}

.chat-row.correct .chat-bubble {
    background: var(--success);
    color: #000;
}

.chat-row.wrong .chat-bubble {
    background: var(--danger);
    color: #fff;
}


.hidden { display: none !important; }

/* Screen share overlay replaces player when active */
#screenOverlay{display:none;width:100%;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.player-fill #screenOverlay{height:72vh}
.screen-active #player{display:none}
.screen-active #screenOverlay{display:block}

.reaction-layer{
  position:absolute;
  inset:16px 16px auto 16px;
  top:16px;
  left:16px;
  right:16px;
  bottom:auto;
  width:calc(100% - 32px);
  height:72vh;
  pointer-events:none;
  z-index:5;
}
.player-fill .reaction-layer{ height:72vh }
.reaction-bubble{
  position:absolute;
  bottom:10px;
  font-size:2rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  opacity:0;
  animation-name: bubbleFloat;
  animation-timing-function: cubic-bezier(0.22,0.61,0.36,1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}
@keyframes bubbleFloat{
  0%{ transform: translate3d(0,0,0) scale(0.9); opacity:0 }
  15%{ opacity:1; transform: translate3d(var(--dx1, 8px), -30px, 0) scale(1.0) }
  40%{ transform: translate3d(var(--dx2, -12px), -120px, 0) scale(1.05) }
  65%{ transform: translate3d(var(--dx3, 18px), -200px, 0) scale(1.05); opacity:0.95 }
  100%{ transform: translate3d(var(--dx4, -10px), -320px, 0) scale(1.1); opacity:0 }
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px
}

.controls input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a2f36;
    background: #0c0f13;
    color: var(--fg)
}

#seekInput {
    flex: 0 0 80px; /* Fixed small width */
    min-width: auto;
}

.danger-btn {
    background: var(--danger) !important;
    color: #fff;
}
.danger-btn:hover {
    background: #ff4f4f !important;
}

/* When local user is in a game, keep view clean: only show Leave */
.controls.controls-in-game{
    justify-content: flex-end;
}
.controls.controls-in-game > :not(#leaveBtn){
    display: none !important;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.users-card,
.chat-card {
    background: var(--card);
    padding: 10px;
    border-radius: 12px;
    position: relative; /* Ensure absolute children (emoji picker) are relative to this */
}
.users-card h3,
.chat-card h3 { margin: 0 0 8px 0 }

.users-card ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.users-card li {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online { background: #39d98a; box-shadow: 0 0 8px rgba(57,217,138,0.4); }
.status-dot.reconnecting { background: #f2c94c; box-shadow: 0 0 8px rgba(242,201,76,0.4); }
.status-dot.offline { background: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,0.4); }

.users-card li:last-child {
    border-bottom: none
}

.chat-box {
    height: 220px;
    overflow: auto;
    background: #0c0f13;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #2a2f36;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 3px
}

.chat-row{
  display:flex;
  align-items:flex-end;
  gap:8px;
}
.chat-row.in{ justify-content:flex-start }
.chat-row.out{ justify-content:flex-end }
.chat-wrap{
  display:flex;
  flex-direction:column;
  width:100%;
}
.chat-wrap.out{ align-items:flex-end }
.chat-wrap.in{ align-items:flex-start }
.chat-line{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:6px;
  max-width:100%;
}
.chat-wrap.out .chat-line{ justify-content:flex-end }
.chat-wrap.in .chat-line{ justify-content:flex-start }
.chat-avatar{
  width:24px;height:24px;border-radius:50%;
  background:#2a3347;color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:.75rem;font-weight:700;flex:0 0 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.chat-bubble{
  display:inline-block;
  max-width:96%;
  padding:5px 12px;border-radius:14px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  color: var(--fg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  overflow-wrap:anywhere; word-break:break-word;
}
.chat-bubble.out{
  background: linear-gradient(135deg, #8a54ff, #6c7cff);
  border: none;
  color: #fff;
}
.chat-meta{
  display:block;
  margin-top:4px;
  font-size:.65rem;
  opacity:.7
}
.chat-emoji{
  font-size: 2rem;
  line-height: 1;
  padding: 4px 6px;
}

.typing-status {
    margin-top: 6px;
    min-height: 20px;
    color: var(--muted);
    font-size: 0.9rem
}

.reactions-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.reactions-grid video{width:100%;border-radius:8px;background:#000}
@media (max-width:900px){.reactions-grid{grid-template-columns:1fr 1fr}}

.chat-input {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a2f36;
    background: #0c0f13;
    color: var(--fg)
}

@media (max-width:900px) {
    .room .room-main {
        grid-template-columns: 1fr
    }
}

html[data-theme="light"] {
    --bg: #f6f8fb;
    --fg: #0f1216;
    --card: #ffffff;
    --muted: #5b6672;
    /* Keep game overlay readable on dark game surface */
    --game-bg: #0b0d12;
    --game-fg: #e6e9f0;
}
html[data-theme="light"] body { background: var(--bg); color: var(--fg); }
html[data-theme="light"] .card, html[data-theme="light"] .users-card, html[data-theme="light"] .chat-card, html[data-theme="light"] .player-section { background: var(--card); }
html[data-theme="light"] input, html[data-theme="light"] .chat-box { background: #ffffff; color: var(--fg); border-color: rgba(0,0,0,0.15); }
html[data-theme="light"] .icon-btn { background: #ffffff; color: var(--fg); border-color: rgba(0,0,0,0.15); }
html[data-theme="light"] .reactions-grid video { background: #000 }
.reactions-toolbar{display:flex;justify-content:flex-start;gap:8px;margin-bottom:8px}
.reactions-toolbar button{background:var(--accent);color:#fff;border:none;padding:8px 12px;border-radius:8px;cursor:pointer}
.reactions-toolbar button:hover{opacity:.9}

/* Circular icon buttons for mic/camera */
.icon-btn{
  width:40px;height:40px;border-radius:50%;
  background:#0c0f13;border:1px solid #2a2f36;
  color:#fff;display:inline-flex;align-items:center;justify-content:center;
  padding:0;position:relative;font-size:20px;line-height:1
}
.icon-btn img{width:22px;height:22px;display:block}
.reactions-toolbar .icon-btn{background:#0c0f13;border-color:#2a2f36}
.icon-btn.off::after{content:none}
.icon-btn:hover{opacity:.9}

.screen-btn{border-radius:8px; width:42px; height:40px; box-shadow:0 2px 8px rgba(0,0,0,0.15)}
.screen-btn:hover{background:#0b0e12}
.screen-btn svg{display:block}
.screen-btn.active{border-color:var(--accent); box-shadow:0 0 0 2px rgba(79,140,255,0.35)}


/* --- Professional UI upgrades --- */

/* Smooth animations everywhere */
* {
    transition: all 0.25s ease;
}

/* Premium soft shadow */
.card, .users-card, .chat-card, .player-section {
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Gradient accent button */
button {
    background: linear-gradient(135deg, #4f8cff, #6fa8ff);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Button hover effect */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Better input fields */
input {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

/* Premium glassy containers */
.card, .player-section, .users-card, .chat-card {
    backdrop-filter: blur(8px);
}

/* Better headings */
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Subtle divider */
.divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 8px 0;
}

.input-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: -6px; /* Pull up closer to input */
    margin-bottom: 8px;
    padding-left: 4px;
    min-height: 1.2em;
    pointer-events: none;
}
.theme-toggle{
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.theme-toggle:hover{ transform: scale(1.05); }
/* Header right row: host text + toggle */
.header-right{display:flex;align-items:center;gap:8px}
.theme-toggle-anchor{position:absolute;top:16px;right:24px}
.chat-card{
    transition: max-height .3s ease, opacity .3s ease, transform .3s ease, padding .3s ease, margin .3s ease, border-width .3s ease
}
.chat-card.collapsed{
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    transform-origin: bottom;
    padding: 0;
    margin-top: 0;
    border-width: 0;
    overflow: hidden;
    pointer-events: none
}
.message-btn-row{display:flex;justify-content:flex-end;margin-top:8px}
.message-btn{
    position: relative;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25)
}
.message-btn .notify-dot{
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
    display: none
}
.message-btn.has-unread .notify-dot{ display: block }

/* Navbar */
.navbar{
  position: sticky; top:0; z-index: 1000;
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 24px; background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.navbar .brand{ color: var(--fg); text-decoration:none; font-weight:700; letter-spacing:-0.3px }
.nav-right{ display:flex; align-items:center; gap:12px }
.nav-link{ color: var(--fg); text-decoration:none; opacity:0.9 }
.nav-link:hover{ opacity:1 }
.nav-cta{
  background: linear-gradient(135deg, #4f8cff, #6fa8ff);
  color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer;
}
.auth-status{ color: var(--muted); font-size:.95rem }

/* Overlay modal */
.overlay{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:2000 }
.overlay.hidden{ display:none }
.overlay-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.6); }
.overlay-card{
  position:relative; z-index:2; width:100%; max-width:520px;
  background: var(--card); border-radius: 16px; padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(10px); opacity: 0; animation: overlayIn .25s ease forwards;
}
.overlay-card > h2{ text-align:center; margin:0 0 8px 0 }
#authSubtitle{ text-align:center; margin:0 0 12px 0 }
.overlay-card .muted{ text-align:center }
.overlay-close{
  position:absolute; top:10px; right:10px;
  background:#0c0f13; border:1px solid #2a2f36; color:#fff; border-radius:8px; cursor:pointer; padding:6px 8px;
}
@keyframes overlayIn{ to { transform: translateY(0); opacity: 1 } }
.auth-form{ display:flex; flex-direction:column; gap:10px; margin-bottom:12px }
.auth-form .form-row{ display:flex; flex-direction:column; gap:6px }
.auth-form label{
  font-size:.95rem;
  font-weight:600;
  color:var(--fg);
  margin-bottom:4px
}
.auth-form input{
  padding:10px; border-radius:8px; border:1px solid #2a2f36; background:#0c0f13; color:var(--fg)
}
.auth-form .muted{ text-align:center; margin:6px 0 }
.auth-form .primary{
  background: var(--accent); color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer
}
.primary{
  background: var(--accent);
  color:#fff; border:none; padding:6px 10px; border-radius:8px; cursor:pointer;
  font-weight:600; letter-spacing:0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.btn-icon{ width:18px; height:18px; margin-right:8px; vertical-align:middle; display:inline-block }
.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.auth-form .primary .btn-icon{ margin-right:8px; display:inline-block }
.error{ color: var(--danger); min-height: 20px; }
.muted{ color: var(--muted) }
.auth-subtitle{ margin-top:-4px; margin-bottom:8px }
.about-section{ margin-top: 20px }
.hidden{ display:none }

/* Info card for email confirmation/reset messages */
.info-card{
  text-align:center;
  padding:16px 12px 18px;
  margin-top:20px;
  border-radius:12px;
  background: rgba(10,12,20,0.95);
  border:1px solid rgba(255,255,255,0.08);
}
.info-card h3{ margin: 0 0 6px 0 }
.info-card .info-icon{
  font-size: 2rem;
  margin-bottom: 6px;
}
.info-card .info-actions{
  display:flex; justify-content:center; gap:12px; margin-top:10px;
}

/* Full-page auth layout */
.auth-page{
  min-height:100vh;
  background: var(--bg);
  color: var(--fg);
  display:flex;
  flex-direction:column;
}
.auth-header{
  padding:16px 32px;
}
.auth-main{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:40px 24px 64px;
}
.auth-card{
  width:100%;
  max-width:420px;
  background: var(--card);
  border-radius:16px;
  padding:32px 28px 28px;
  box-shadow:0 16px 40px rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.06);
}
.auth-title{
  margin:0 0 20px 0;
  font-size:2rem;
  font-weight:700;
  text-align:center;
}
.auth-social-group{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
}
.auth-social-btn{
  width:100%;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.12);
  background:#11141c;
  color:var(--fg);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}
.auth-social-btn:hover{
  background:#151925;
}
.auth-social-google{
}
.auth-social-facebook{
}
.auth-social-icon{
  width:20px;
  height:20px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
}
.auth-social-icon-google{
  background:#ffffff;
  color:#4285f4;
}
.auth-social-icon-facebook{
  background:#1877f2;
  color:#ffffff;
}
.auth-social-label{
  font-size:.95rem;
}
.auth-divider{
  text-align:center;
  margin:8px 0 16px;
  font-size:.9rem;
  color:var(--muted);
}
.auth-divider span{
  position:relative;
}
.auth-submit{
  width:100%;
  margin-top:6px;
}
.auth-switch{
  margin-top:12px;
  font-size:.9rem;
  text-align:center;
}
.auth-switch a{
  color:var(--fg);
  text-decoration:underline;
}
.auth-legal{
  margin-top:12px;
  font-size:.8rem;
  color:var(--muted);
  text-align:center;
}
.auth-legal a{
  color:var(--fg);
  text-decoration:underline;
}
.auth-link{
  background:transparent;
  border:none;
  color:var(--fg);
  font-size:.85rem;
  text-align:left;
  padding:0;
  margin:4px 0 8px;
  cursor:pointer;
}

/* Responsive navbar collapse */
@media (max-width:700px){
  .nav-right{ gap:8px }
  .nav-link{ display:none } /* keep brand and Get Started for small screens */
  .nav-link.nav-link--mobile-visible{ display:inline-block }
  .nav-toggle{ display:inline-block }
}

/* Profile dropdown */
.profile-menu{ position:relative }
.profile-btn{
  background:#0c0f13; border:1px solid #2a2f36; color:#fff; border-radius:8px; padding:8px 12px; cursor:pointer;
}
.profile-dropdown{
  position:absolute; right:0; top:calc(100% + 6px);
  background: var(--card); border:1px solid rgba(255,255,255,0.08); border-radius:10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  min-width:160px; padding:6px;
}
.profile-dropdown.hidden{ display:none }
.dropdown-item{
  width:100%; text-align:left; background:transparent; border:none; color:var(--fg);
  padding:8px 10px; border-radius:8px; cursor:pointer;
}
.dropdown-item:hover{ background: rgba(255,255,255,0.05) }

/* Mobile navbar toggle and menu */
.nav-toggle{
  background:#0c0f13; border:1px solid #2a2f36; color:#fff; border-radius:8px; padding:8px 12px; cursor:pointer;
  display:none;
}
.mobile-menu{
  position: fixed; right: 12px; top: 56px;
  background: var(--card); border:1px solid rgba(255,255,255,0.08); border-radius:10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  min-width: 220px; padding:8px; z-index: 1500;
}
.mobile-menu.hidden{ display:none }
.mobile-menu .menu-item{
  width:100%; text-align:left; background:transparent; border:none; color:var(--fg);
  padding:10px 12px; border-radius:8px; cursor:pointer;
}
.mobile-menu .menu-item:hover{ background: rgba(255,255,255,0.05) }
.mobile-menu .menu-divider{
  height:1px; background: rgba(255,255,255,0.07); margin:6px 0;
}
/* Toggle box under auth buttons */
.toggle-box{
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}
.toggle-box.success{
  background: rgba(57,217,138,0.18);
  border: 1px solid rgba(57,217,138,0.35);
}
.toggle-link{
  background: transparent;
  border: none;
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
}

/* System Chat Messages */
.chat-system-msg {
    color: var(--danger);
    font-style: italic;
    font-size: 0.9em;
    margin: 4px 0;
    opacity: 0.9;
}

/* Emoji Bar */
.emoji-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 8px;
}
.quick-emojis {
  display: flex;
  gap: 12px;
}
.emoji-item {
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s;
  user-select: none;
  font-family: "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;
}
.emoji-item:hover {
  transform: scale(1.3);
}
.emoji-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  box-shadow: none;
}
.emoji-toggle-btn:hover {
  transform: scale(1.2);
  box-shadow: none;
}
.emoji-picker {
  position: absolute;
  bottom: 60px;
  right: 10px;
  width: 280px;
  height: 250px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
  backdrop-filter: blur(10px);
}
.emoji-picker.hidden {
  display: none;
}
.emoji-picker .emoji-item {
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  font-size: 1.2rem;
}
.emoji-picker .emoji-item:hover {
  background: rgba(255,255,255,0.1);
}
/* Scrollbar for emoji picker */
.emoji-picker::-webkit-scrollbar {
  width: 6px;
}
.emoji-picker::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

/* Minimal dark thin scrollbars – global */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}
body,
.chat-box,
.users-card,
.player-section,
.emoji-picker {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}
/* Chromium/Edge */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.20);
  border-radius: 8px;
  border: 2px solid transparent;
}
/* Chat box slightly thinner */
.chat-box::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.chat-box::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.25);
  border-radius: 8px;
}

.media-card{ max-width: 740px }
.media-stepper{ display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:10px }
.media-stepper .step{ display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,0.06); font-weight:600 }
.media-stepper .step.active{ background: rgba(79,140,255,0.18); color:#c9d8ff }
.media-stepper .sep{ color: var(--muted) }
.media-view{ text-align:center }
.media-logo{ font-size: 2.2rem; font-weight: 800; letter-spacing: 6px; margin: 14px 0 }
.media-actions{ display:flex; justify-content:center; gap:12px; margin-top:12px }
.media-controls{ display:flex; justify-content:center; gap:12px; margin-top:12px }
.media-preview{ 
  width: 65%; 
  max-width: 520px; 
  border-radius: 16px; 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  margin: 18px auto; 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); 
}
.media-preview video{ 
  width: 100%; 
  height: auto; 
  display: block; 
}
.media-view.hidden{ display:none }

.quality-dropdown{ position:relative }
.quality-btn{
  background: var(--accent);
  color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer;
  font-weight:600; letter-spacing:0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.quality-btn:hover{ transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3) }
.quality-menu{
  position:absolute; bottom:calc(100% + 8px); left:0; min-width:160px;
  background: var(--card); border:1px solid rgba(255,255,255,0.08); border-radius:10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  padding:6px; z-index: 3000;
}
.quality-menu.hidden{ display:none }
.quality-item{
  width:100%; text-align:left; background:transparent; border:none; color:var(--fg);
  padding:8px 10px; border-radius:8px; cursor:pointer; font-weight:600;
}
.quality-item:hover{ background: rgba(255,255,255,0.06) }
.media-select-card{ max-width: 1100px; }
.media-select-body{ display:grid; grid-template-columns: 240px 1fr; gap:12px; margin-top:8px }
.media-tools{ display:flex; gap:10px; align-items:center; margin-bottom:8px }
.media-tool-btn{
  background:#0c0f13; border:1px solid #2a2f36; color:#fff; border-radius:12px; padding:10px; cursor:pointer;
  width:50px; height:50px; display:inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.media-tool-btn:hover{ transform: translateY(-2px); }
.media-tool-btn svg{ width:34px; height:34px }
.media-select-sidebar{ background: var(--card); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:8px; display:flex; flex-direction:column; gap:8px }
.media-select-sidebar .dropdown-item.active{ background: rgba(255,255,255,0.06); color: var(--fg) }
.media-grid{
  display:flex;
  flex-wrap: wrap;
  gap:12px;
  align-items:flex-start;
  max-height: 420px;
  overflow-y: auto;
}
.app-card{
  position:relative;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display:flex; align-items:center; justify-content:center;
  width: 220px; aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.app-card:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.35) }
.app-card .app-title{ font-weight:800; letter-spacing:6px; }
.app-card--netflix{ background:#000; color:#e50914 }
.app-card--prime{ background:#0b1a29; color:#58a6ff }
.app-card-img{ width:100%; height:100%; object-fit:cover; border-radius:10px }
.ss-icon{ font-size: 2rem; margin-bottom: 8px }
.app-card--placeholder{ background: rgba(255,255,255,0.05); color: var(--muted) }

.lobby-card{
  max-width: 980px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(1200px 300px at 50% 0%, rgba(108,124,255,0.18), transparent 60%),
              rgba(8,10,18,0.85);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
}
.lobby-card h2{
  margin-top: 4px;
  letter-spacing: -0.3px;
}
#lobbySubtitle{
  margin-top: 6px;
  margin-bottom: 10px;
}
#lobbyEmpty{
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  text-align: center;
  color: var(--muted);
}
#lobbyEmpty::before{
  content: "✦";
  display: inline-block;
  margin-right: 8px;
  color: rgba(108,124,255,0.9);
}
.lobby-grid{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.lobby-room-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(0);
}
.lobby-room-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.44);
  border-color: rgba(108,124,255,0.45);
}
.lobby-room-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.lobby-room-header span:first-child{
  font-variant-numeric: tabular-nums;
}
.lobby-room-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.lobby-room-status{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79,140,255,0.12);
  color: #c9d8ff;
  font-size: 0.8rem;
  border: 1px solid rgba(108,124,255,0.30);
}
.lobby-room-footer{
  display: flex;
  justify-content: flex-end;
}
.lobby-join-btn{
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0d12;
  font-weight: 800;
}
@media (max-width:600px){
  .lobby-card{
    max-width: 100%;
    margin: 0 12px;
  }
}

/* --- LANDING PAGE STYLES (from copymystyle) --- */

.nav{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 32px;
  backdrop-filter:blur(10px);
  background:rgba(11,13,18,.6);
  border-bottom:1px solid var(--border);
}
.brand{font-weight:800;letter-spacing:.4px;color:#fff;text-decoration:none;font-size:20px}
.nav a{color:var(--muted);text-decoration:none;margin-left:22px;font-weight:500}
.nav a:hover{color:#fff}
.cta{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#0b0d12;border:none;padding:10px 18px;border-radius:999px;
  font-weight:700;cursor:pointer
}

/* HERO */
.hero{
  max-width:1100px;margin:0 auto;padding:96px 24px 64px;
  display:grid;grid-template-columns:1.1fr .9fr;gap:48px
}
.hero h1{font-size:52px;line-height:1.05;margin:0 0 16px}
.hero p{color:var(--muted);font-size:18px;max-width:520px}
.hero-actions{margin-top:32px;display:flex;gap:16px;flex-wrap:wrap}
.ghost{
  background:transparent;color:#fff;border:1px solid var(--border);
  padding:12px 20px;border-radius:999px;font-weight:600;cursor:pointer
}

/* PANELS */
.panel{
  background:linear-gradient(180deg,rgba(255,255,255,.04),transparent);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px
}
.stack{display:grid;gap:16px}
.panel input{
  width:100%;padding:14px 16px;border-radius:12px;
  border:1px solid var(--border);background:#0f1425;color:#fff
}
.panel input:focus{outline:none;border-color:var(--brand)}
.panel .primary{
  width:100%;padding:14px 18px;border-radius:12px;
  border:none;font-weight:700;cursor:pointer;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#0b0d12
}
/* ABOUT SECTION REDESIGN 2026 */
.about-section {
  padding: 100px 24px;
  background: radial-gradient(circle at 50% 0%, rgba(108, 124, 255, 0.05), transparent);
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}
.about-header {
  text-align: center;
  margin-bottom: 64px;
}
.about-header .eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.about-header h2 {
  font-size: 48px;
  margin: 0 0 16px;
  background: linear-gradient(to bottom, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-header p {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 24px;
  margin-bottom: 64px;
}
.bento-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.bento-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(108, 124, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.bento-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(108, 124, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-item:hover .bento-glow {
  opacity: 1;
}

.bento-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-2);
  margin-bottom: 12px;
  background: rgba(79, 209, 197, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}
.bento-item h3 {
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 700;
}
.bento-item p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Bento Item Specifics */
.bento-main {
  grid-column: span 2;
}
.bento-side {
  grid-column: span 1;
}
.bento-bottom {
  grid-column: span 1;
}
.bento-small {
  grid-column: span 1;
}
.bento-extra {
  grid-column: span 1;
}

/* Visuals inside Bento */
.bento-visual {
  margin-top: 32px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Browser Mockup */
.mockup-browser {
  width: 100%;
  background: #000;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: rotateX(5deg) rotateY(-5deg);
  transition: transform 0.5s;
}
.bento-main:hover .mockup-browser {
  transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}
.mockup-header {
  padding: 10px 14px;
  background: #111;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mockup-header .dots {
  display: flex;
  gap: 6px;
}
.mockup-header .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.mockup-header .address-bar {
  flex: 1;
  background: #000;
  border-radius: 6px;
  font-size: 10px;
  padding: 4px 8px;
  color: var(--muted);
  font-family: monospace;
}
.mockup-body {
  padding: 16px;
  position: relative;
}
.mockup-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  clip-path: polygon(25% 15%, 25% 85%, 85% 50%);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}
.mockup-sync-indicator {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  border: 1px solid rgba(57, 217, 138, 0.2);
}

/* Lock Visual (Privacy) */
.lock-body {
  width: 60px;
  height: 50px;
  background: var(--brand);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 20px rgba(108, 124, 255, 0.3);
  transition: transform 0.3s;
}
.bento-side:hover .lock-body {
  transform: translateY(-5px);
}
.lock-shackle {
  width: 40px;
  height: 40px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  position: absolute;
  top: -30px;
  left: 10px;
  transition: transform 0.4s;
}
.bento-side:hover .lock-shackle {
  transform: translateY(-4px);
}
.lock-keyhole {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 24px;
}
.lock-keyhole::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 4px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
}

/* Chat Mockup */
.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.mockup-chat .msg {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 14px;
  max-width: 85%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.mockup-chat .msg.out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--brand), #8a54ff);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mockup-chat .msg.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

/* Device Visual */
.device-visual {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.device-desktop {
  width: 80px;
  height: 50px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  position: relative;
}
.device-desktop::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 30px;
  width: 20px;
  height: 4px;
  background: rgba(255,255,255,0.1);
}
.device-mobile {
  width: 30px;
  height: 55px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  position: relative;
  transition: transform 0.3s;
}
.bento-small:hover .device-mobile {
  transform: translateY(-8px) rotate(-5deg);
}

/* Streaming & Game Visuals for Bento */
.streaming-visual {
  display: flex;
  gap: 20px;
}
.streaming-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.bento-item:hover .streaming-icon:nth-child(1) { transform: rotate(-10deg) scale(1.1); }
.bento-item:hover .streaming-icon:nth-child(2) { transform: rotate(10deg) scale(1.1); }

.game-visual {
  width: 100%;
  perspective: 1000px;
}
.mockup-game {
  width: 120px;
  height: 120px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(20deg);
  transition: transform 0.4s;
}
.bento-item:hover .mockup-game {
  transform: rotateX(0deg) scale(1.1);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 80%;
}
.game-grid span {
  width: 100%;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
}

.about-footer {
  text-align: center;
  margin-top: 32px;
}
.about-footer .cta {
  padding: 18px 64px;
  font-size: 20px;
  box-shadow: 0 10px 30px rgba(108, 124, 255, 0.3);
}

@media (max-width: 900px) {
  .about-header h2 { font-size: 36px; }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bento-main, .bento-side, .bento-bottom, .bento-small, .bento-extra {
    grid-column: span 1;
  }
}

/* PRICING PAGE */
.pricing-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.pricing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
}
.pricing-hero {
  text-align: center;
}
.pricing-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.pricing-title {
  font-size: 56px;
  font-weight: 800;
  margin: 16px 0;
  background: linear-gradient(to bottom, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-subtitle {
  font-size: 20px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
.plan-footer {
  margin-top: auto;
  width: 100%;
}
.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 124, 255, 0.4);
}
.plan-cta--muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: not-allowed;
}
.plan-cta--muted:hover {
  transform: none;
  box-shadow: none;
}
.plan-header {
  margin-bottom: 24px;
}
.plan-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 40px;
  font-weight: 800;
  margin: 16px 0 8px;
}
.plan-price span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.plan-features {
  margin: 32px 0;
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  color: var(--muted);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}
.plan-card--highlight {
  border-color: var(--brand);
  background: rgba(108, 124, 255, 0.05);
}
.plan-card--pro {
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
 }
 .plan-badge--recommended {
   background: rgba(108, 124, 255, 0.15);
   color: #fff;
   border-color: var(--brand);
 }
.pricing-compare{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.pricing-compare-header h2{
  font-size:18px;
  margin:0 0 4px;
}
.pricing-compare-header p{
  font-size:14px;
  color:var(--muted);
}
.pricing-compare-table-wrapper{
  border-radius:16px;
  border:1px solid var(--border);
  background: radial-gradient(1200px 420px at 50% 0%, rgba(108,124,255,0.10), transparent 60%),
              rgba(0,0,0,0.25);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.pricing-compare-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width: 820px;
}
.pricing-compare-table th,
.pricing-compare-table td{
  padding:12px 16px;
}
.pricing-compare-table thead{
  background:rgba(12,16,28,0.96);
}
.pricing-compare-table th{
  text-align:left;
  color:var(--muted);
  font-weight:800;
  letter-spacing: -0.2px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.pricing-compare-table .plan-col{
  text-align:center;
}
.pricing-compare-table th:first-child,
.pricing-compare-table td:first-child{
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(12,16,28,0.92);
}
.pricing-compare-table thead th:first-child{
  z-index: 3;
}
.compare-heading td{
  font-weight:900;
  color:var(--fg);
  background: rgba(18,22,36,0.98);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}
.pricing-compare-table tbody tr:nth-child(even) td{
  background:rgba(10,14,24,0.9);
}
/* Player Skeleton and Animations */
.player-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0e12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #fff;
}

.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-content {
  text-align: center;
  position: relative;
  z-index: 11;
}

.skeleton-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-out {
  animation: fadeOut 0.5s ease-in forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.universal-iframe {
  border: none;
  background: #000;
}

.pricing-compare-table tbody tr:nth-child(odd) td{
  background:rgba(6,9,18,0.95);
}
.pricing-compare-table tbody tr:hover td{
  background: rgba(108,124,255,0.10);
}
.pricing-compare-table tbody tr:hover td:first-child{
  background: rgba(12,16,28,0.92);
}
.pricing-compare-table td{
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pricing-compare-table .plan-col:nth-child(3){
  /* subtly spotlight Free Account column */
  box-shadow: inset 0 0 0 9999px rgba(108,124,255,0.045);
}
.compare-pill{
  display:inline-flex;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  color:var(--muted);
  border: 1px solid rgba(255,255,255,0.10);
}
.compare-pill-strong{
  background:rgba(108,124,255,0.18);
  color:#e4e7ff;
}
.pricing-check,
.pricing-x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}
.pricing-check{
  background:rgba(108,124,255,0.16);
  color:#e4e7ff;
  border:1px solid rgba(108,124,255,0.8);
}
.pricing-x{
  background:rgba(255,107,107,0.12);
  color:var(--danger);
  border:1px solid rgba(255,107,107,0.7);
}

@media (max-width: 900px){
  .pricing-compare-table{
    min-width: 760px;
  }
}

.pricing-faq{
  margin-top:40px;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr);
  gap:28px;
  align-items:flex-start;
}
.pricing-faq-intro h2{
  font-size:20px;
  margin:0 0 8px;
}
.pricing-faq-intro p{
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
  margin:0 0 10px;
}
.pricing-faq-meta{
  font-size:13px;
}
.pricing-faq-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.faq-item{
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(0,0,0,0.35);
  overflow:hidden;
}
.faq-toggle{
  width:100%;
  border:none;
  background:transparent;
  color:inherit;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  font-size:14px;
  text-align:left;
}
.faq-question{
  flex:1;
}
.faq-icon{
  font-size:18px;
  color:var(--muted);
}
.faq-answer{
  padding:0 14px 12px;
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
  overflow:hidden;
}
.faq-item.open .faq-icon{
  color:var(--success);
}

.pricing-cta{
  margin-top:40px;
}
.pricing-cta-inner{
  border-radius:16px;
  border:1px solid var(--border);
  background:linear-gradient(135deg,rgba(57,217,138,0.22),transparent);
  padding:20px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.pricing-cta-inner h2{
  margin:0 0 4px;
  font-size:20px;
}
.pricing-cta-inner p{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

@media (max-width:900px){
  .pricing-main{
    padding-top:72px;
  }
  .pricing-grid{
    grid-template-columns:1fr;
  }
  .plan-card--highlight{
    order:-1;
  }
  .pricing-faq{
    grid-template-columns:1fr;
  }
  .pricing-cta-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* JOIN MODAL PROFESSIONAL STYLE */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay.hidden { display: none; }
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.join-card {
  position: relative;
  max-width: 420px;
  width: 92%;
  padding: 40px 32px;
  background: rgba(10, 12, 20, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  z-index: 10001;
  border-radius: 24px;
}
.join-card .overlay-header {
  text-align: center;
  margin-bottom: 32px;
}
.join-card h2.brand {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--brand);
}
.join-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(to bottom, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.join-card p {
  color: var(--muted);
  font-size: 15px;
}
.join-card .input-group {
  margin-bottom: 24px;
}
.join-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.join-card input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}
.join-card input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(108, 124, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(108, 124, 255, 0.15);
}
.join-card .cta {
  height: 52px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .join-card {
    padding: 32px 24px;
  }
  .join-card h3 {
    font-size: 24px;
  }
}

/* FOOTER */
footer{
  border-top:1px solid var(--border);
  padding:32px 24px;color:var(--muted);text-align:center
}

@media(max-width:900px){
  .hero{grid-template-columns:1fr;padding-top:64px}
  .hero h1{font-size:40px}
  .trust{grid-template-columns:1fr}
}

/* TRUST */
.trust{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
  max-width:1100px;margin:64px auto;padding:0 24px
}
.trust div{color:var(--muted);font-size:14px}
.trust strong{color:#fff;font-size:18px}

/* --- End of Professional UI upgrades --- */