html.iwg-meme body{background:var(--iwg-paper);color:var(--iwg-ink)}
.meme-entry{max-width:1184px;margin:auto;padding:26px 24px 36px;font-family:var(--iwg-font);color:var(--iwg-ink)}
.meme-crumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--iwg-muted);margin-bottom:24px}.meme-heading{display:flex;align-items:center;gap:18px;margin-bottom:28px}.meme-mark{display:grid;place-items:center;width:66px;height:66px;flex-shrink:0;border:2px solid #f0c5d4;border-radius:17px;background:#fff0f4;color:#b52d60;font-size:37px;font-weight:800;transform:rotate(-6deg)}.meme-heading h1{display:flex;align-items:center;flex-wrap:wrap;gap:14px;font:850 38px/1.2 var(--iwg-font);letter-spacing:-1.3px}.meme-heading h1 span{font:750 9px var(--iwg-font);letter-spacing:1px;padding:6px 9px;border-radius:30px;background:#fff0f4;color:#9b2851}.meme-heading p{font-size:13px;color:var(--iwg-muted);margin-top:7px}
.meme-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.meme-panel{overflow:hidden}.meme-mode-bar{display:flex;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid var(--iwg-border);font-size:12px}.meme-mode-bar strong{color:var(--iwg-blue)}.meme-mode-bar a{color:var(--iwg-muted)}.meme-setup{padding:30px 24px}.meme-intro{text-align:center;margin-bottom:26px}.meme-intro h2{font:800 22px/1.4 var(--iwg-font)}.meme-intro p{font-size:12px;color:var(--iwg-muted);margin-top:9px}
.meme-name{max-width:380px;margin:0 auto 24px}.meme-entry label{display:block;font-size:12px;font-weight:700;margin-bottom:9px}.meme-entry input{display:block;width:100%;min-width:0;min-height:48px;padding:12px 14px;border:2px solid var(--iwg-muted);border-radius:12px;background:var(--iwg-paper);color:var(--iwg-ink);font:500 14px var(--iwg-font)}.meme-entry input::placeholder{color:var(--iwg-muted)}.meme-entry :is(input,button,a):focus-visible{outline:3px solid var(--iwg-blue);outline-offset:3px}.meme-forms{display:grid;grid-template-columns:1fr 1fr;gap:16px}.meme-forms>section{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid var(--iwg-border);border-radius:18px;background:var(--iwg-soft)}.meme-forms h3{font:800 17px var(--iwg-font);margin-bottom:16px}.meme-forms p{font-size:12px;line-height:1.7;color:var(--iwg-muted);margin-bottom:20px}.meme-entry .iwg-button{width:100%;font-size:12px;min-height:48px;margin-top:auto}.meme-forms input{margin-bottom:18px}.meme-panel-bottom{border-top:1px solid var(--iwg-border);padding:18px 24px;text-align:center;color:var(--iwg-muted);font-size:11px}
.meme-guide{padding:24px}.meme-guide h2{font:800 22px/1.3 var(--iwg-font);letter-spacing:-.5px;margin-bottom:12px}.meme-guide p{font-size:12px;line-height:1.7;color:var(--iwg-muted)}.meme-rule{display:flex;gap:12px;align-items:start;margin-top:24px}.meme-rule>span{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:9px;background:var(--iwg-soft);font-size:22px;color:var(--iwg-blue)}.meme-rule h3{font-size:12px;font-weight:750;margin-bottom:5px}.meme-rule p{font-size:11px}.meme-guide .meme-tip{margin-top:24px;padding-top:18px;border-top:1px solid var(--iwg-border);font-size:11px}.meme-related{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:28px}.meme-related h2{font:800 18px var(--iwg-font);margin-right:auto}.meme-related a{font-size:12px;padding:12px;border:1px solid var(--iwg-border);border-radius:12px}.meme-related a:hover{background:var(--iwg-soft);color:var(--iwg-blue)}.meme-related span{margin-left:12px}
@media(max-width:900px){.meme-layout{grid-template-columns:1fr}}
@media(max-width:600px){.meme-entry{padding:20px 12px 30px}.meme-heading{gap:12px}.meme-mark{width:50px;height:50px;font-size:29px}.meme-heading h1{font-size:27px;gap:8px}.meme-heading h1 span{font-size:7px}.meme-heading p{font-size:11px;line-height:1.6}.meme-setup{padding:24px 14px}.meme-intro h2{font-size:20px}.meme-forms{grid-template-columns:1fr}.meme-forms>section{padding:18px}.meme-mode-bar{padding:18px 14px}.meme-related{gap:8px}.meme-related h2{width:100%}.meme-related a{font-size:11px}}

.meme-forms h2{font-size:17px;font-weight:800;margin-bottom:16px}.meme-entry #landing-error{margin-top:18px;color:var(--iwg-ink)}.meme-entry #input-room-code{text-transform:uppercase;letter-spacing:.15em}

.meme-recommendations{margin-top:34px}.meme-related-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.meme-related-heading h2{font:800 20px var(--iwg-font)}.meme-related-heading>a{font-size:11px;color:var(--iwg-blue);font-weight:700}.meme-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.meme-related-grid>a{display:flex;align-items:center;gap:12px;padding:16px;color:var(--iwg-ink)}.meme-related-grid svg{width:64px;height:60px;flex-shrink:0;border-radius:12px;background:var(--iwg-soft)}.meme-related-grid h3{font:800 12px var(--iwg-font)}.meme-related-grid p{font:400 10px/1.6 var(--iwg-font);color:var(--iwg-muted);margin-top:5px}.meme-related-grid>a>span{margin-left:auto}
@media(max-width:900px){.meme-related-grid{grid-template-columns:1fr}}
@media(max-width:600px){.meme-related-heading{align-items:flex-start;flex-direction:column}}
.meme-entry button:disabled{opacity:.5;cursor:wait}.meme-entry input{border:1px solid var(--iwg-border)}.meme-entry input[aria-invalid="true"]{border-color:#c13952}

/* Room shell: shared colors and controls, independent of gameplay state. */
html.iwg-meme #pageGame{max-width:1184px;font-family:var(--iwg-font);color:var(--iwg-ink)}
html.iwg-meme #pageGame .font-display{font-family:var(--iwg-font);letter-spacing:-.025em}
html.iwg-meme #pageGame .glass{background:var(--iwg-paper);border:1px solid var(--iwg-border);box-shadow:none;backdrop-filter:none}
html.iwg-meme #pageGame .text-white{color:var(--iwg-ink)}
html.iwg-meme #pageGame :is(.text-gray-400,.text-gray-500){color:var(--iwg-muted)}
html.iwg-meme #pageGame :is(.text-g1,.text-g3){color:var(--iwg-blue)}
.meme-room-header{gap:20px;flex-wrap:wrap}.meme-room-brand{display:flex;align-items:center;gap:12px}.meme-room-brand svg{width:56px;height:48px;flex-shrink:0;background:var(--iwg-soft);border-radius:12px}.meme-room-brand h1{font:800 24px/1.2 var(--iwg-font);letter-spacing:-.6px}.meme-room-header p{margin-top:8px;letter-spacing:0;text-transform:none}.meme-room-actions{gap:18px}
html.iwg-meme #current-room-code{background:var(--iwg-soft);border:1px solid var(--iwg-border);border-radius:10px;color:var(--iwg-ink);font:800 18px/1.4 var(--iwg-font);letter-spacing:3px;padding:6px 12px}
html.iwg-meme .meme-room-control{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px;min-height:44px;padding:0 16px;border:1px solid var(--iwg-border);border-radius:12px;background:var(--iwg-soft);color:var(--iwg-ink);font:700 13px/1 var(--iwg-font);text-decoration:none;white-space:nowrap;cursor:pointer;flex-shrink:0}
html.iwg-meme .meme-fullscreen{width:44px;padding:0}.meme-room-control:hover{border-color:var(--iwg-blue);color:var(--iwg-blue)}
html.iwg-meme #view-lobby h2{font-size:28px}html.iwg-meme #view-lobby h3{font-size:20px}html.iwg-meme #view-lobby .glass{height:auto;min-height:0;padding:24px}html.iwg-meme #player-list{min-height:100px;max-height:320px}html.iwg-meme #player-list .glass{padding:14px 16px;background:var(--iwg-soft);border-radius:12px;font-size:14px}html.iwg-meme #player-list .glass span:last-child:not(:first-child){font-size:10px;letter-spacing:.05em}html.iwg-meme #player-count{background:var(--iwg-soft);color:var(--iwg-blue)}
html.iwg-meme #pageGame :is(select,option,input,textarea){font-family:var(--iwg-font);background:var(--iwg-soft);color:var(--iwg-ink);border:1px solid var(--iwg-border)}html.iwg-meme #pageGame select{min-height:46px;border-radius:12px;padding:10px 12px;font-size:14px}html.iwg-meme #host-settings-panel label{font-size:12px;text-transform:none;letter-spacing:0}
html.iwg-meme #btn-start-game,html.iwg-meme .meme-primary{min-height:44px;padding:12px 20px;border:1px solid #3155ef;border-radius:12px;background:#3155ef;color:#fff;font:700 13px/1.4 var(--iwg-font);box-shadow:none;transform:none;cursor:pointer}html.iwg-meme #btn-start-game:disabled{opacity:.45;cursor:not-allowed}
html.iwg-meme #meme-quit-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:calc(100% - 32px);max-width:420px;padding:28px;border:1px solid var(--iwg-border);border-radius:22px;background:var(--iwg-paper);color:var(--iwg-ink);font-family:var(--iwg-font);box-shadow:0 24px 80px #10183040}#meme-quit-dialog::backdrop{background:rgb(12 18 38 / .5);backdrop-filter:blur(4px)}#meme-quit-dialog h2{font-size:24px;font-weight:800;margin:0 0 12px}#meme-quit-dialog p{font-size:14px;line-height:1.6;color:var(--iwg-muted);margin:0 0 24px}#meme-quit-dialog>div{display:flex;gap:12px}#meme-quit-dialog button{flex:1}.meme-room-control:focus-visible,.meme-primary:focus-visible{outline:3px solid var(--iwg-blue);outline-offset:3px}
@media(max-width:600px){html.iwg-meme #pageGame{padding:20px 12px}.meme-room-header{padding:18px}.meme-room-brand h1{font-size:22px}.meme-room-actions{width:100%;justify-content:space-between}html.iwg-meme #view-lobby h2{font-size:24px}html.iwg-meme #view-lobby .glass{padding:18px}}

/* All room actions share one 44px baseline, including the copyable code. */
html.iwg-meme .meme-room-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
#room-info{position:relative;flex-shrink:0}
html.iwg-meme #btn-copy-room-code{gap:12px;padding:0 12px;height:44px}
.meme-code-label{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:9px;line-height:1;color:var(--iwg-muted)}
html.iwg-meme #current-room-code{display:block;border:0;border-radius:0;background:transparent;padding:0;color:var(--iwg-ink);font:800 15px/1.1 var(--iwg-font);letter-spacing:2px;user-select:text}
#room-copy-status{position:absolute;top:calc(100% + 4px);left:0;font:600 10px/1.2 var(--iwg-font);color:var(--iwg-blue);white-space:nowrap}
@media(max-width:600px){html.iwg-meme .meme-room-actions{justify-content:flex-start}}
html.iwg-meme #room-info{display:flex;align-items:center;height:44px}
