Add Guess Game page and UI/JS support
Introduce a new Guess The Rank feature: add guess.html and associated styles and logic. app.js gains video modal utilities (extractYouTubeID, openVideoModal, renderApprovedRunsForLevel) and the full guessing-game flow (modes, round lifecycle, input handling). Refactor existing video-open usage to the new modal and enable showing approved runs in the modal. Update multiple navs and index highlights to link to the new Guess Game. Add CSS for guess UI and responsive tweaks, and adjust some UI copy (e.g. "View Video").
This commit is contained in:
1 parent
de621e50e9
commit
b4c6c48958
11 files changed
+333
-60
No files matched your search
@@ -11,6 +11,7 @@
|
||||
<h1>FEDL Admin</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
<a href="players.html">Players</a>
|
||||
|
||||
@@ -189,6 +189,73 @@
|
||||
}).catch(()=>null);
|
||||
}
|
||||
|
||||
function renderApprovedRunsForLevel(item, hostEl){
|
||||
if(!hostEl) return;
|
||||
hostEl.innerHTML = '<p class="muted">Loading approved runs...</p>';
|
||||
loadRuns().then(runs=>{
|
||||
const approvedRuns = runs.filter(run=>{
|
||||
return String(run.status || '').toLowerCase() === 'approved'
|
||||
&& String(run.levelTitle || '').toLowerCase() === String(item.title || '').toLowerCase();
|
||||
});
|
||||
if(!approvedRuns.length){
|
||||
hostEl.innerHTML = '<p class="muted">No approved runs have been linked to this level yet.</p>';
|
||||
return;
|
||||
}
|
||||
hostEl.innerHTML = approvedRuns.map(run=>`
|
||||
<article class="modal-run-card">
|
||||
<strong>${escapeHtml(run.playerName || 'Unknown player')}</strong>
|
||||
<span>${escapeHtml(run.percent || '100')}%</span>
|
||||
<a class="text-link" href="${escapeAttr(run.videoUrl || '#')}" target="_blank" rel="noopener noreferrer">Open run video</a>
|
||||
</article>
|
||||
`).join('');
|
||||
}).catch(err=>{
|
||||
console.error(err);
|
||||
hostEl.innerHTML = '<p class="muted">Could not load approved runs for this level.</p>';
|
||||
});
|
||||
}
|
||||
|
||||
function extractYouTubeID(url){
|
||||
const m = String(url || '').match(/(?:v=|\/embed\/|youtu\.be\/)([A-Za-z0-9_-]{6,})/);
|
||||
return m ? m[1] : '';
|
||||
}
|
||||
|
||||
function openVideoModal(item, options){
|
||||
const config = Object.assign({showRuns:false}, options || {});
|
||||
const url = item && item.url;
|
||||
if(!url) return;
|
||||
const id = extractYouTubeID(url);
|
||||
if(!id){
|
||||
window.open(url,'_blank');
|
||||
return;
|
||||
}
|
||||
let modal = document.querySelector('.video-modal');
|
||||
if(!modal){
|
||||
modal = document.createElement('div'); modal.className='video-modal';
|
||||
const inner = document.createElement('div'); inner.className='inner';
|
||||
const close = document.createElement('button'); close.textContent='Close'; close.className='btn'; close.style.float='right'; close.onclick=()=>modal.remove();
|
||||
inner.appendChild(close);
|
||||
const iframe = document.createElement('iframe'); iframe.allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'; iframe.allowFullscreen=true;
|
||||
inner.appendChild(iframe); modal.appendChild(inner); document.body.appendChild(modal);
|
||||
const runsWrap = document.createElement('div'); runsWrap.className = 'modal-runs-wrap';
|
||||
runsWrap.innerHTML = `
|
||||
<div class="modal-runs-head">
|
||||
<strong>Approved runs</strong>
|
||||
<span class="muted">Player, percent, and linked video</span>
|
||||
</div>
|
||||
<div class="modal-runs-list"></div>
|
||||
`;
|
||||
inner.appendChild(runsWrap);
|
||||
}
|
||||
modal.querySelector('iframe').src = `https://www.youtube.com/embed/${id}`;
|
||||
const runsWrap = modal.querySelector('.modal-runs-wrap');
|
||||
const runsList = modal.querySelector('.modal-runs-list');
|
||||
if(runsWrap) runsWrap.hidden = !config.showRuns;
|
||||
if(config.showRuns && runsList){
|
||||
renderApprovedRunsForLevel(item, runsList);
|
||||
}
|
||||
modal.style.display = 'flex';
|
||||
}
|
||||
|
||||
if(page==='index'){
|
||||
const totalEl = qs('hero-total-levels');
|
||||
const topEl = qs('hero-top-entry');
|
||||
@@ -265,9 +332,14 @@
|
||||
: 'Level ID came from your local level-ids.txt file.';
|
||||
if(item.url){
|
||||
openEl.hidden = false;
|
||||
openEl.href = item.url;
|
||||
openEl.href = '#';
|
||||
openEl.onclick = function(e){
|
||||
e.preventDefault();
|
||||
openVideoModal(item, {showRuns:false});
|
||||
};
|
||||
}else{
|
||||
openEl.hidden = true;
|
||||
openEl.onclick = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -311,6 +383,149 @@
|
||||
});
|
||||
}
|
||||
|
||||
if(page==='guess'){
|
||||
const modeSelect = qs('guess-mode');
|
||||
const startBtn = qs('guess-start');
|
||||
const form = qs('guess-form');
|
||||
const input = qs('guess-input');
|
||||
const statusEl = qs('guess-status');
|
||||
const titleEl = qs('guess-level-title');
|
||||
const attemptsEl = qs('guess-attempts');
|
||||
const feedbackEl = qs('guess-feedback');
|
||||
const answerEl = qs('guess-answer');
|
||||
const openEl = qs('guess-open');
|
||||
|
||||
const guessModes = {
|
||||
casual: {label:'Casual', tries:6},
|
||||
standard: {label:'Standard', tries:4},
|
||||
hard: {label:'Hard', tries:3},
|
||||
marathon: {label:'Marathon', tries:8}
|
||||
};
|
||||
|
||||
const state = {
|
||||
active: false,
|
||||
triesLeft: guessModes.standard.tries,
|
||||
answer: null,
|
||||
item: null
|
||||
};
|
||||
|
||||
function getRankedItems(items){
|
||||
return items.slice().filter(item=>Number(item.position) > 0).sort((a,b)=>(Number(a.position)||0)-(Number(b.position)||0));
|
||||
}
|
||||
|
||||
function getSelectedMode(){
|
||||
return guessModes[(modeSelect && modeSelect.value) || 'standard'] || guessModes.standard;
|
||||
}
|
||||
|
||||
function resetGuessUi(message){
|
||||
const mode = getSelectedMode();
|
||||
state.active = false;
|
||||
state.triesLeft = mode.tries;
|
||||
state.answer = null;
|
||||
state.item = null;
|
||||
statusEl.textContent = message;
|
||||
titleEl.textContent = 'No level selected';
|
||||
attemptsEl.textContent = `Tries left: ${mode.tries}`;
|
||||
feedbackEl.textContent = `Mode: ${mode.label}. Enter a rank number to start guessing.`;
|
||||
answerEl.textContent = 'The correct rank will show here if you run out of guesses.';
|
||||
openEl.hidden = true;
|
||||
openEl.href = '#';
|
||||
openEl.onclick = null;
|
||||
input.value = '';
|
||||
}
|
||||
|
||||
function finishRound(message, revealAnswer){
|
||||
state.active = false;
|
||||
statusEl.textContent = message;
|
||||
attemptsEl.textContent = `Tries left: ${state.triesLeft}`;
|
||||
answerEl.textContent = revealAnswer
|
||||
? `${state.item.title} is ranked #${state.answer}.`
|
||||
: 'Correct. Start another round whenever you want.';
|
||||
if(state.item && state.item.url){
|
||||
openEl.hidden = false;
|
||||
openEl.href = '#';
|
||||
openEl.onclick = function(e){
|
||||
e.preventDefault();
|
||||
openVideoModal(state.item, {showRuns:false});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function startRound(){
|
||||
const mode = getSelectedMode();
|
||||
statusEl.textContent = 'Picking a level...';
|
||||
attemptsEl.textContent = `Tries left: ${mode.tries}`;
|
||||
feedbackEl.textContent = `Loading a ${mode.label.toLowerCase()} round.`;
|
||||
answerEl.textContent = 'You will get hints after each wrong guess.';
|
||||
openEl.hidden = true;
|
||||
openEl.onclick = null;
|
||||
input.value = '';
|
||||
loadItems().then(items=>{
|
||||
const rankedItems = getRankedItems(items);
|
||||
if(!rankedItems.length){
|
||||
resetGuessUi('No ranked levels were found.');
|
||||
feedbackEl.textContent = 'Add list data first, then start another round.';
|
||||
return;
|
||||
}
|
||||
const item = rankedItems[Math.floor(Math.random() * rankedItems.length)];
|
||||
state.active = true;
|
||||
state.triesLeft = mode.tries;
|
||||
state.answer = Number(item.position);
|
||||
state.item = item;
|
||||
statusEl.textContent = 'Guess this level\'s rank.';
|
||||
titleEl.textContent = item.title;
|
||||
attemptsEl.textContent = `Tries left: ${mode.tries}`;
|
||||
feedbackEl.textContent = `Mode: ${mode.label}. Guess the rank and I will tell you higher or lower.`;
|
||||
answerEl.textContent = 'The correct rank will show here if you run out of guesses.';
|
||||
input.value = '';
|
||||
input.focus();
|
||||
}).catch(err=>{
|
||||
console.error(err);
|
||||
resetGuessUi('Could not load the list for the guessing game.');
|
||||
feedbackEl.textContent = 'Try again after the list finishes loading.';
|
||||
});
|
||||
}
|
||||
|
||||
function submitGuess(){
|
||||
if(!state.active || !state.item){
|
||||
feedbackEl.textContent = 'Start a round first so there is a level to guess.';
|
||||
return;
|
||||
}
|
||||
const rawGuess = input.value.trim();
|
||||
const guess = Number(rawGuess);
|
||||
if(!rawGuess || !Number.isInteger(guess) || guess < 1){
|
||||
feedbackEl.textContent = 'Enter a valid whole-number rank.';
|
||||
return;
|
||||
}
|
||||
if(guess === state.answer){
|
||||
feedbackEl.textContent = `Correct. ${state.item.title} is #${state.answer}.`;
|
||||
finishRound('You got it.', false);
|
||||
return;
|
||||
}
|
||||
state.triesLeft -= 1;
|
||||
attemptsEl.textContent = `Tries left: ${state.triesLeft}`;
|
||||
const direction = guess < state.answer ? 'Higher' : 'Lower';
|
||||
if(state.triesLeft > 0){
|
||||
feedbackEl.textContent = `${direction}. #${guess} is not the right spot.`;
|
||||
return;
|
||||
}
|
||||
feedbackEl.textContent = `${direction}. That was your last guess.`;
|
||||
finishRound('Round over.', true);
|
||||
}
|
||||
|
||||
resetGuessUi('Start a round to get a level.');
|
||||
if(modeSelect){
|
||||
modeSelect.addEventListener('change', ()=>{
|
||||
if(!state.active) resetGuessUi('Start a round to get a level.');
|
||||
});
|
||||
}
|
||||
startBtn.addEventListener('click', startRound);
|
||||
form.addEventListener('submit', function(e){
|
||||
e.preventDefault();
|
||||
submitGuess();
|
||||
});
|
||||
}
|
||||
|
||||
// Players page
|
||||
if(page==='players'){
|
||||
const form = qs('player-form'); const nameIn = qs('player-name'); const list = qs('players');
|
||||
@@ -406,69 +621,13 @@
|
||||
const tdTitle = document.createElement('td'); tdTitle.textContent = it.title;
|
||||
const tdAct = document.createElement('td');
|
||||
const a = document.createElement('a'); a.textContent='Open'; a.href='#'; a.className='btn';
|
||||
a.addEventListener('click', (e)=>{e.preventDefault(); openVideo(it)});
|
||||
a.addEventListener('click', (e)=>{e.preventDefault(); openVideoModal(it, {showRuns:true})});
|
||||
tdAct.appendChild(a);
|
||||
tr.appendChild(tdNum); tr.appendChild(tdTitle); tr.appendChild(tdAct);
|
||||
tbody.appendChild(tr);
|
||||
});
|
||||
}
|
||||
|
||||
function renderApprovedRunsForLevel(item, hostEl){
|
||||
if(!hostEl) return;
|
||||
hostEl.innerHTML = '<p class="muted">Loading approved runs...</p>';
|
||||
loadRuns().then(runs=>{
|
||||
const approvedRuns = runs.filter(run=>{
|
||||
return String(run.status || '').toLowerCase() === 'approved'
|
||||
&& String(run.levelTitle || '').toLowerCase() === String(item.title || '').toLowerCase();
|
||||
});
|
||||
if(!approvedRuns.length){
|
||||
hostEl.innerHTML = '<p class="muted">No approved runs have been linked to this level yet.</p>';
|
||||
return;
|
||||
}
|
||||
hostEl.innerHTML = approvedRuns.map(run=>`
|
||||
<article class="modal-run-card">
|
||||
<strong>${escapeHtml(run.playerName || 'Unknown player')}</strong>
|
||||
<span>${escapeHtml(run.percent || '100')}%</span>
|
||||
<a class="text-link" href="${escapeAttr(run.videoUrl || '#')}" target="_blank" rel="noopener noreferrer">Open run video</a>
|
||||
</article>
|
||||
`).join('');
|
||||
}).catch(err=>{
|
||||
console.error(err);
|
||||
hostEl.innerHTML = '<p class="muted">Could not load approved runs for this level.</p>';
|
||||
});
|
||||
}
|
||||
|
||||
function openVideo(item){
|
||||
const url = item && item.url;
|
||||
if(!url) return; const id = extractYouTubeID(url);
|
||||
if(!id){ window.open(url,'_blank'); return }
|
||||
let modal = document.querySelector('.video-modal');
|
||||
if(!modal){
|
||||
modal = document.createElement('div'); modal.className='video-modal';
|
||||
const inner = document.createElement('div'); inner.className='inner';
|
||||
const close = document.createElement('button'); close.textContent='Close'; close.className='btn'; close.style.float='right'; close.onclick=()=>modal.remove();
|
||||
inner.appendChild(close);
|
||||
const iframe = document.createElement('iframe'); iframe.allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'; iframe.allowFullscreen=true;
|
||||
inner.appendChild(iframe); modal.appendChild(inner); document.body.appendChild(modal);
|
||||
const runsWrap = document.createElement('div'); runsWrap.className = 'modal-runs-wrap';
|
||||
runsWrap.innerHTML = `
|
||||
<div class="modal-runs-head">
|
||||
<strong>Approved runs</strong>
|
||||
<span class="muted">Player, percent, and linked video</span>
|
||||
</div>
|
||||
<div class="modal-runs-list"></div>
|
||||
`;
|
||||
inner.appendChild(runsWrap);
|
||||
}
|
||||
modal.querySelector('iframe').src = `https://www.youtube.com/embed/${id}`;
|
||||
renderApprovedRunsForLevel(item, modal.querySelector('.modal-runs-list'));
|
||||
modal.style.display = 'flex';
|
||||
}
|
||||
|
||||
function extractYouTubeID(url){
|
||||
const m = url.match(/(?:v=|\/embed\/|youtu\.be\/)([A-Za-z0-9_-]{6,})/); return m?m[1]:'';
|
||||
}
|
||||
|
||||
function applyItems(items){
|
||||
const previousFilter = filterSelect.value || 'all';
|
||||
currentItems = items.slice();
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<h1>Error Pages</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="players.html">Players</a>
|
||||
<a href="rules.html">Rules</a>
|
||||
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>Guess The Rank - GD fedl</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body data-page="guess">
|
||||
<header>
|
||||
<h1>Guess The Rank</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="roulette.html">Roulette</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
<a href="players.html">Players</a>
|
||||
<a href="rules.html">Rules</a>
|
||||
<a href="admelist.html">Admin</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<section class="roulette-shell">
|
||||
<section class="panel roulette-panel roulette-guess-panel">
|
||||
<div class="roulette-head">
|
||||
<div>
|
||||
<p class="roulette-kicker">Guessing Game</p>
|
||||
<h2>Where Is It Ranked?</h2>
|
||||
<p class="muted roulette-intro">A level title shows up, you guess its place on the list, and you get higher or lower hints until you solve it or run out of tries.</p>
|
||||
</div>
|
||||
<button class="btn roulette-btn" id="guess-start" type="button">Start Round</button>
|
||||
</div>
|
||||
|
||||
<div class="roulette-card guess-card">
|
||||
<label class="control-block control-select" for="guess-mode">
|
||||
<span>Mode</span>
|
||||
<select id="guess-mode">
|
||||
<option value="casual">Casual - 6 guesses</option>
|
||||
<option value="standard" selected>Standard - 4 guesses</option>
|
||||
<option value="hard">Hard - 3 guesses</option>
|
||||
<option value="marathon">Marathon - 8 guesses</option>
|
||||
</select>
|
||||
</label>
|
||||
|
||||
<p class="roulette-status muted" id="guess-status">Start a round to get a level.</p>
|
||||
<h3 id="guess-level-title">No level selected</h3>
|
||||
<p class="roulette-rank" id="guess-attempts">Tries left: 4</p>
|
||||
<p class="roulette-note muted" id="guess-feedback">Pick a mode, start a round, and enter a rank number like 1, 15, or 42.</p>
|
||||
|
||||
<form class="guess-form" id="guess-form">
|
||||
<label class="guess-label" for="guess-input">Your rank guess</label>
|
||||
<div class="guess-controls">
|
||||
<input id="guess-input" type="number" min="1" inputmode="numeric" placeholder="Guess the rank" />
|
||||
<button class="btn" id="guess-submit" type="submit">Guess</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p class="guess-answer muted" id="guess-answer">The correct rank will show here if you run out of guesses.</p>
|
||||
<a class="btn roulette-open" id="guess-open" href="#" target="_blank" rel="noopener noreferrer" hidden>View Video</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<aside class="panel roulette-rules-card">
|
||||
<p class="roulette-kicker">Modes</p>
|
||||
<h2>How this page works</h2>
|
||||
<div class="roulette-rule-list">
|
||||
<article>
|
||||
<strong>Casual</strong>
|
||||
<p>Six guesses for a more forgiving round if you just want to learn the list.</p>
|
||||
</article>
|
||||
<article>
|
||||
<strong>Standard</strong>
|
||||
<p>Four guesses for the default version of the game.</p>
|
||||
</article>
|
||||
<article>
|
||||
<strong>Hard</strong>
|
||||
<p>Three guesses if you want the original tougher setup.</p>
|
||||
</article>
|
||||
<article>
|
||||
<strong>Marathon</strong>
|
||||
<p>Eight guesses for longer rounds and closer narrowing.</p>
|
||||
</article>
|
||||
</div>
|
||||
</aside>
|
||||
</section>
|
||||
</main>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,6 +10,7 @@
|
||||
<header>
|
||||
<h1>GD fedl</h1>
|
||||
<nav>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="players.html">Players</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
@@ -27,6 +28,7 @@
|
||||
|
||||
<div class="hero-actions">
|
||||
<a class="btn" href="lists.html">Open The List</a>
|
||||
<a class="btn ghost-btn" href="guess.html">Play Guess Game</a>
|
||||
<a class="btn ghost-btn" href="run.html">Submit A Run</a>
|
||||
<a class="btn ghost-btn" href="rules.html">Submission Rules</a>
|
||||
<a class="btn ghost-btn" href="roulette.html">Spin Roulette</a>
|
||||
@@ -101,6 +103,10 @@
|
||||
<h3>Rules</h3>
|
||||
<p>Check completion requirements, accepted tools, and what moderators expect from a valid run.</p>
|
||||
</article>
|
||||
<article class="spotlight-card">
|
||||
<h3>Guess Game</h3>
|
||||
<p>See a random level name, pick a mode, and guess its rank with higher or lower hints.</p>
|
||||
</article>
|
||||
<article class="spotlight-card">
|
||||
<h3>Roulette</h3>
|
||||
<p>Pull a random demon with rank and level ID details for your next roulette attempt.</p>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<h1>fedl</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="players.html">Players</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
<a href="rules.html">Rules</a>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<h1>Players</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
<a href="rules.html">Rules</a>
|
||||
|
||||
+6
-1
@@ -11,6 +11,7 @@
|
||||
<h1>Demon Roulette</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
<a href="players.html">Players</a>
|
||||
@@ -36,7 +37,7 @@
|
||||
<p class="roulette-rank" id="roulette-rank">Rank: -</p>
|
||||
<p class="roulette-meta" id="roulette-level-id">Level ID: -</p>
|
||||
<p class="roulette-note muted" id="roulette-note">Level IDs come from your local file first, then API lookup if needed.</p>
|
||||
<a class="btn roulette-open" id="roulette-open" href="#" target="_blank" rel="noopener noreferrer" hidden>Open Video</a>
|
||||
<a class="btn roulette-open" id="roulette-open" href="#" target="_blank" rel="noopener noreferrer" hidden>View Video</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -60,6 +61,10 @@
|
||||
<strong>Extra data included</strong>
|
||||
<p>This page shows rank and level ID, and it tries API lookup when local info is missing.</p>
|
||||
</article>
|
||||
<article>
|
||||
<strong>Want another mode?</strong>
|
||||
<p>Open the separate Guess Game page if you want to figure out a level's rank with higher or lower hints.</p>
|
||||
</article>
|
||||
</div>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<h1>FEDL Rules</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="run.html">Submit Run</a>
|
||||
<a href="players.html">Players</a>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<h1>Submit Run</h1>
|
||||
<nav>
|
||||
<a href="index.html">Home</a>
|
||||
<a href="guess.html">Guess Game</a>
|
||||
<a href="lists.html">Lists</a>
|
||||
<a href="rules.html">Rules</a>
|
||||
<a href="roulette.html">Roulette</a>
|
||||
|
||||
+9
-1
@@ -173,6 +173,7 @@ table.levels-table .btn{padding:9px 14px}
|
||||
/* small helpers reused */
|
||||
.small{font-size:0.9rem}
|
||||
.roulette-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:18px;align-items:start}
|
||||
.roulette-main-column{display:grid;gap:18px}
|
||||
.roulette-rules{margin-bottom:18px}
|
||||
.roulette-panel{margin-top:0;padding:28px;border-radius:28px;background:linear-gradient(135deg,rgba(92,197,255,0.14),rgba(7,19,38,0.96));border:1px solid rgba(92,197,255,0.18)}
|
||||
.roulette-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
|
||||
@@ -187,6 +188,13 @@ table.levels-table .btn{padding:9px 14px}
|
||||
.roulette-meta{margin:0 0 10px 0;font-size:1rem;color:#dce8f5}
|
||||
.roulette-note{margin:10px 0 16px 0}
|
||||
.roulette-open{color:#042}
|
||||
.roulette-guess-panel{background:linear-gradient(135deg,rgba(255,184,77,0.12),rgba(7,19,38,0.96));border-color:rgba(255,184,77,0.18)}
|
||||
.guess-card{display:grid;gap:12px}
|
||||
.guess-form{display:grid;gap:10px;margin-top:4px}
|
||||
.guess-label{font-size:.9rem;font-weight:700;color:#eef5ff}
|
||||
.guess-controls{display:flex;gap:12px;align-items:center}
|
||||
.guess-controls input{flex:1;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.03);color:var(--text);font:inherit}
|
||||
.guess-answer{margin:0}
|
||||
.roulette-rules-card{padding:24px;border-radius:28px;background:linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));border:1px solid rgba(255,255,255,0.08)}
|
||||
.roulette-rules-card h2{margin:0 0 16px 0;font-size:1.8rem}
|
||||
.roulette-rule-list{display:grid;gap:14px}
|
||||
@@ -275,7 +283,7 @@ linear-gradient(180deg,rgba(8,18,32,0.98),rgba(7,19,38,0.94))}
|
||||
.status-card{display:block;padding:18px;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));border:1px solid rgba(255,255,255,0.06);text-decoration:none;color:var(--text)}
|
||||
.status-card strong{display:block;margin-bottom:6px;font-size:1.65rem}
|
||||
.status-card span{display:block;color:var(--muted);line-height:1.5}
|
||||
@media(max-width:900px){.layout{flex-direction:column}.sidebar{width:100%}.sidebar .panel{height:auto}.video-modal iframe{height:320px}.modal-runs-head,.modal-run-card{grid-template-columns:1fr}.home-hero{grid-template-columns:1fr;min-height:auto}.home-copy,.hero-stage{padding:24px 22px}.hero-stats,.home-section-grid,.spotlight-grid{grid-template-columns:1fr}.spotlight-panel{grid-template-columns:1fr;padding:24px 22px}.list-hero-panel,.table-header,.search-row,.roulette-head{flex-direction:column;align-items:flex-start}.control-select{max-width:none;width:100%}.roulette-shell{grid-template-columns:1fr}.discord-panel{flex-direction:column;align-items:flex-start;padding:22px 20px}.discord-panel h2{font-size:1.55rem}.discord-actions{width:100%;justify-content:flex-start}.rules-view header{padding:16px 18px}.rules-view header h1{font-size:1.55rem}.rules-page{padding:24px 20px}.rules-page h2{font-size:1.65rem}}
|
||||
@media(max-width:900px){.layout{flex-direction:column}.sidebar{width:100%}.sidebar .panel{height:auto}.video-modal iframe{height:320px}.modal-runs-head,.modal-run-card{grid-template-columns:1fr}.home-hero{grid-template-columns:1fr;min-height:auto}.home-copy,.hero-stage{padding:24px 22px}.hero-stats,.home-section-grid,.spotlight-grid{grid-template-columns:1fr}.spotlight-panel{grid-template-columns:1fr;padding:24px 22px}.list-hero-panel,.table-header,.search-row,.roulette-head,.guess-controls{flex-direction:column;align-items:flex-start}.control-select{max-width:none;width:100%}.roulette-shell{grid-template-columns:1fr}.discord-panel{flex-direction:column;align-items:flex-start;padding:22px 20px}.discord-panel h2{font-size:1.55rem}.discord-actions{width:100%;justify-content:flex-start}.rules-view header{padding:16px 18px}.rules-view header h1{font-size:1.55rem}.rules-page{padding:24px 20px}.rules-page h2{font-size:1.65rem}.guess-controls input,.guess-controls .btn{width:100%}}
|
||||
@media(max-width:900px){.error-grid{grid-template-columns:1fr}.error-copy,.error-side{padding:24px 20px}.error-copy h2{font-size:2.5rem}}
|
||||
@media(max-width:900px){.admin-overview-panel,.admin-toolbar{flex-direction:column;align-items:stretch}.admin-actions{flex-direction:column;align-items:stretch}.admin-password-field input,.admin-actions input[type=text],.admin-actions input[type=password]{min-width:0;width:100%}.run-shell{grid-template-columns:1fr}.run-head{flex-direction:column;align-items:flex-start}.run-form{grid-template-columns:1fr}.admin-login-screen{padding:18px}.admin-login-card{padding:26px 22px}}
|
||||
@media(max-width:640px){header{flex-direction:column;align-items:flex-start;gap:12px}nav{display:flex;flex-wrap:wrap;gap:10px}nav a{margin-left:0}.home-copy h2{max-width:none}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn,.roulette-btn{width:100%;text-align:center}.list-hero-panel,.list-controls-panel,.list-table-panel,.roulette-panel,.roulette-rules-card,.run-panel,.run-side-panel,.submission-panel{padding:22px 18px}.table-hint{text-align:left}.run-admin-actions{justify-content:flex-start}}
|
||||
Reference in new issue
Block a user