/*
Theme Name: Dark Secrets
Theme URI: https://example.com/dark-secrets
Author: Dark Secrets
Description: A one-page theme that hosts the Dark Secrets backstory card game. Play online with friends on separate devices, or solo against bots. Everything is included: upload the theme, activate it, and the game appears on your home page.
Version: 1.0.9
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dark-secrets-theme
*/

:root { --bg: #0B1220; --card: #121B30; --line: #243350; --muted: #9AA6BA; --text: #C9D2E0; --accent: #2EC4B6; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { font-family: 'Montserrat', 'Inter', system-ui, sans-serif; color: #fff; line-height: 1.15; margin: 0 0 .5em; }
.ds-wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px; }
.ds-bar { width: 100%; position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.admin-bar .ds-bar { top: 32px; }
.ds-bar-in { width: 100%; max-width: none; margin: 0; padding: 8px 20px; min-height: 56px; flex-wrap: nowrap; display: flex; align-items: center; gap: 16px; position: relative; }
.ds-logo { display: flex; align-items: center; gap: 10px; line-height: 1; flex: none; border-radius: 10px; text-decoration: none; }
.ds-logo-words { display: flex; flex-direction: column; gap: 4px; }
.ds-tagline { font: 500 11px/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ds-logo-text { font: 700 20px/1 'Montserrat', 'Inter', sans-serif; color: #fff; white-space: nowrap; }
@media (max-width: 380px) { .ds-logo-text { font-size: 17px; } .ds-tagline { font-size: 9px; letter-spacing: .1em; } }
.ds-logo:focus-visible, .ds-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-nav { margin-left: auto; }
.ds-nav ul, .ds-menu { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; }
.ds-nav li { list-style: none; margin: 0; padding: 0; display: block; position: static; }
.ds-nav li::marker { content: ''; }
.ds-nav .sub-menu { display: none !important; }
.ds-nav a { white-space: nowrap; }
body > .ds-bar, .ds-bar * { box-sizing: border-box; }
.ds-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 15px/1 'Inter', sans-serif; }
.ds-menu a:hover, .ds-menu a.current { background: var(--card); color: #fff; }
.ds-nav-toggle, .ds-burger { display: none; }
@media (max-width: 640px) {
  .ds-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 12px; cursor: pointer; }
  .ds-burger span { width: 22px; height: 2px; background: #fff; display: block; }
  .ds-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .ds-nav-toggle:checked ~ .ds-nav { display: block; }
  .ds-nav-toggle:focus-visible ~ .ds-burger { outline: 2px solid var(--accent); }
  .ds-nav ul, .ds-menu { flex-direction: column; }
}
.ds-main { padding: 12px 0 28px; }
.ds-intro { margin: 8px 0 18px; color: var(--text); }
.ds-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.ds-footer { padding: 18px 0 36px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.ds-notice { background: #251F14; border: 1px solid #E6B450; color: #E6B450; padding: 12px 14px; border-radius: 8px; }
.entry-content > * { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }
.ds-how ol { padding-left: 20px; } .ds-how li { margin: 0 0 10px; }

.ds-twoplayer { margin: 14px 0 0; text-align: center; }
.ds-btn { display: block; padding: 14px 18px; border-radius: 10px; background: var(--card); border: 1px solid var(--accent); color: #fff; text-decoration: none; font: 600 16px/1.2 'Inter', sans-serif; }
.ds-btn:hover, .ds-btn:focus-visible { background: var(--accent); color: #0B1220; }

/* full-screen game pages */
body.ds-app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.ds-app.admin-bar { height: calc(100dvh - 32px); }
.ds-app .ds-main { flex: 1 1 auto; min-height: 0; padding: 8px 0; }
.ds-app .ds-main > .ds-wrap { height: 100%; max-width: 1180px; display: flex; flex-direction: column; }
.ds-app .ds-footer { display: none; }
.ds-app .dark-secrets-game { flex: 1 1 auto; height: auto; }
.ds-app .ds-twoplayer { flex: none; margin: 8px 0 0; }
.ds-app .ds-btn { padding: 10px 14px; }

/* drinking game */
.ds-drink-banner { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; padding: 8px 14px; border-radius: 10px; background: #3A1620; border: 1px solid #F08A7E; color: #FFD2CB; font-size: 13px; line-height: 1.3; text-align: center; }
.ds-drink-banner b { color: #fff; font: 700 14px/1 'Montserrat', 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.ds-menu a.ds-drink-link { color: #FFD2CB; border: 1px solid #F08A7E; }
.ds-menu a.ds-drink-link:hover, .ds-menu a.ds-drink-link.current { background: #3A1620; color: #fff; }
.ds-how h2 { margin-top: 28px; }
.ds-how .ds-drink-rules { border: 1px solid #F08A7E; border-radius: 12px; padding: 4px 18px 14px; background: #1C1018; }
.ds-how .ds-note { color: var(--muted); font-size: 14px; }

/* drinking game pages: dark bar look, amber and cherry */
body.ds-drinking { --bg: #1A0A10; --card: #2A1119; --line: #5A2433; --muted: #C7A3AB; --text: #F0D9DC; --accent: #FFB547; background: radial-gradient(ellipse at 50% -10%, #3A1420 0%, #1A0A10 60%) fixed; }
body.ds-drinking::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, #FFB547 0 24px, #F2527A 24px 48px); z-index: 100; }
body.ds-drinking .ds-bar { background: rgba(26, 10, 16, .96); border-bottom-color: #FFB547; }
body.ds-drinking .ds-tagline { color: #FFB547; }
body.ds-drinking .ds-drink-banner { background: repeating-linear-gradient(135deg, #4A1626 0 14px, #3A1220 14px 28px); border-color: #FFB547; color: #FFE3A8; box-shadow: 0 0 14px rgba(255, 181, 71, .25); }
body.ds-drinking .ds-btn { border-color: #FFB547; }
body.ds-drinking .ds-btn:hover, body.ds-drinking .ds-btn:focus-visible { background: #FFB547; color: #1A0A10; }
