<?php
declare(strict_types=1);
session_start();
if (!isset($_SESSION['student_id'])) {
    header('Location: student-login.php');
    exit;
}

$book=$_GET['book']??'global-success';$grade=max(1,(int)($_GET['grade']??1));$id=max(1,(int)($_GET['id']??1));$lesson=max(1,(int)($_GET['lesson']??1));$activity=max(1,(int)($_GET['activity']??1));
$pageTitle='Games';$pageSubtitle='Unit '.$id.' • Lesson '.$lesson;$showBack=true;$backUrl='student-activities.php?book='.urlencode($book).'&grade='.$grade.'&id='.$id.'&lesson='.$lesson.'&activity='.$activity;$activeStudentNav='learning';
include __DIR__.'/includes/student-layout-start.php';
?>
<div class="empty"><div style="font-size:42px;margin-bottom:10px">🎮</div>Trang trò chơi sẽ được xây dựng tiếp.</div>
<?php include __DIR__.'/includes/student-layout-end.php'; ?>
