/* PlayRound on a computer (wide window + mouse). Phones and tablets never match this. */
@media (min-width: 1024px) and (pointer: fine) {
  /* App shell: sidebar + screen */
  .dk-app { display: grid; grid-template-columns: 272px 1fr; height: var(--app-h, 100dvh); }
  .dk-main { min-width: 0; height: 100%; overflow-y: auto; }
  .dk-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 16px; height: 100%; overflow: hidden;
    background: linear-gradient(180deg, #221A16, #17120F); color: #F4EBDD; border-right: 1px solid rgba(232,184,108,.18); }
  .dk-brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 4px 8px 18px; color: inherit; }
  .dk-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
  .dk-brand span { font: 900 24px Nunito, sans-serif; background: linear-gradient(135deg, #FFD58A, #E8B86C, #C98A3A); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .dk-cap { font: 800 11px Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,235,221,.45); padding: 16px 10px 6px; }
  .dk-friends { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; min-height: 0; }
  .dk-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: none; color: inherit; cursor: pointer; text-align: left; transition: background .15s, transform .15s; }
  .dk-item:hover { background: rgba(255,255,255,.06); }
  .dk-item.on { background: linear-gradient(90deg, rgba(232,184,108,.22), rgba(232,184,108,.06)); box-shadow: inset 3px 0 0 #E8B86C; }
  .dk-ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: rgba(255,255,255,.06); }
  .dk-gtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .dk-gtxt b { font: 800 15px Nunito, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk-gtxt small { font: 600 12px Nunito, sans-serif; color: rgba(244,235,221,.5); } .dk-gtxt small.on { color: #5FD38A; }
  .dk-badge { background: #D7263D; color: #fff; font: 800 11px Nunito, sans-serif; padding: 2px 7px; border-radius: 999px; }
  .dk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
  .dk-actions button { border: 0; border-radius: 12px; padding: 10px 6px; font: 800 13px Nunito, sans-serif; cursor: pointer; transition: filter .15s, transform .15s; }
  .dk-actions button:hover { filter: brightness(1.1); transform: translateY(-1px); }
  .dk-new { background: linear-gradient(135deg, #FF7A4D, #E4572E); color: #fff; box-shadow: 0 3px 0 #A8341A; }
  .dk-me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 16px; background: rgba(255,255,255,.05); color: inherit; cursor: pointer; text-align: left; }
  .dk-me:hover { background: rgba(255,255,255,.09); }
  .dk-streak { font: 900 14px Nunito, sans-serif; padding: 4px 9px; border-radius: 999px; background: rgba(255,122,77,.15); color: #FFB089; }

  /* Home: a dashboard, not a phone column */
  .desk .home { max-width: 1180px; padding: 32px 40px 48px; gap: 28px; }
  .desk .home .bottom-bar { display: none; }
  .desk .home .avatar-btn, .desk .home .streak { display: none; }
  .desk .home-head .brand { font-size: 40px; }
  .desk .showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; overflow: visible; }
  .desk .sc-item { width: auto; transition: transform .18s; } .desk .sc-item:hover { transform: translateY(-4px) scale(1.04); }
  .desk .sc-item .nm { max-width: 110px; }


  /* Igre: smaller cards, as many columns as fit (a phone keeps two) */
  .games-screen .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .games-screen .gcard-cover { height: 128px; }
  .games-screen .gcard-body { min-height: 92px; }
  .games-screen .gcard-title { font-size: 18px; }
  .games-screen .locked-card { min-height: 220px; border-radius: 22px; }
  .games-screen .game-card, .games-screen .locked-card { transition: transform .18s, box-shadow .18s; }
  .games-screen .game-card:hover, .games-screen .locked-card:hover { transform: translateY(-4px); }
  .games-screen .sub-cta { padding: 18px 22px; }

  /* Prodavnica: a wide page in columns, not a phone column */
  .store-screen { max-width: 1140px; padding: 0 40px 48px; }
  .store-top { position: static; background: none; padding: 28px 0 14px; font-size: 34px; }
  .store-top > .grow:first-child { display: none; }
  .st-done { display: none; }
  .store-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
  .store-body > * { grid-column: span 12; }
  .store-body > .sec-title { margin-top: 14px; }
  .store-body > .pack-row { grid-column: span 6; }
  .store-body > div.single-row { grid-column: span 4; }
  .store-body > button.single-row { grid-column: span 6; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
  .store-hero { min-height: 0; }
  .store-body > .plus-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px 32px; padding: 26px 28px; }
  .store-body > .plus-card > .plc-head { grid-column: 1 / -1; }
  .store-body > .plus-card > .plc-perks { grid-column: 1; align-self: center; }
  .store-body > .plus-card > .plc-buy { grid-column: 2; align-self: center; }
  .store-body > .plus-card > .plc-note { grid-column: 1 / -1; }
  .store-body > .plus-card .plc-opt { padding: 22px 10px 18px; }
  .store-body > .plus-card .plc-price { font-size: 28px; }
  .store-body .pr-games { flex-wrap: wrap; overflow: visible; }
  .store-body .ds-card { transition: transform .18s, box-shadow .18s; }
  .store-body > div.single-row:hover, .store-body > button.single-row:hover, .store-body > .pack-row:hover { transform: translateY(-3px); }
  .store-body > .legal-foot { margin-top: 8px; }

  /* Sheets become centered dialogs */
  .sheet-back { align-items: center !important; }
  .sheet-panel { max-width: 560px !important; border-radius: 28px !important; animation: dk-pop .2s ease-out !important; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
  .sheet-grab { display: none; }
  @keyframes dk-pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

  /* Games: the table uses the screen (scaled up), bars stay its width; no flashing frame around the window */
  .game-screen > .gs-table { max-width: 860px !important; zoom: var(--dk-zoom, 1.25); }
  .game-screen > .hud, .game-screen > .emote-bar { max-width: calc(860px * var(--dk-zoom, 1.25)) !important; }
  .game-screen > .emote-bar { justify-content: center; }
  /* Bilijar lies across the screen, so it gets the whole width */
  .game-screen > .gs-table:has(.pool-v) { max-width: 1240px !important; }
  .turn-frame { display: none; }
  .turn-banner { box-shadow: 0 0 28px rgba(95,211,138,.55); }
button, [role="button"], .sc-item { cursor: pointer; }
  :focus-visible { outline: 3px solid #E8B86C; outline-offset: 2px; }
}
@media (min-width: 1024px) and (pointer: fine) and (max-height: 820px) { .game-screen { --dk-zoom: 1.05; } }
@media (min-width: 1600px) and (pointer: fine) and (min-height: 1000px) { .game-screen { --dk-zoom: 1.45; } }
@media (prefers-reduced-motion: reduce) { .dk-item, .sc-item, .game-card { transition: none !important; } }
/* Sidebar in the light theme */
@media (min-width: 1024px) and (pointer: fine) {
  :root[data-theme="light"] .dk-side { background: linear-gradient(180deg, #FFFDF9, #FFF4E6); color: #1E1B2E; border-right-color: rgba(160,110,40,.2); }
  :root[data-theme="light"] .dk-brand span { background: linear-gradient(135deg, #FF7A4D, #E4572E, #A8341A); -webkit-background-clip: text; background-clip: text; }
  :root[data-theme="light"] .dk-cap, :root[data-theme="light"] .dk-gtxt small { color: rgba(30,27,46,.5); }
  :root[data-theme="light"] .dk-gtxt small.on { color: #1F8A3E; }
  :root[data-theme="light"] .dk-item:hover, :root[data-theme="light"] .dk-me { background: rgba(30,27,46,.05); }
  :root[data-theme="light"] .dk-item.on { background: linear-gradient(90deg, rgba(228,87,46,.14), rgba(228,87,46,.03)); box-shadow: inset 3px 0 0 #E4572E; }
:root[data-theme="light"] .dk-ic { background: rgba(30,27,46,.06); }
}
